Skip to content

Commit

Permalink
keep CurrentProjectService scoped when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Dec 19, 2024
1 parent 21fc21f commit aa5067c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/FwLite/LcmCrdt.Tests/LcmCrdtTestsKernel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static IServiceCollection AddTestLcmCrdtClient(this IServiceCollection se
services.AddLcmCrdtClient();
if (project is not null)
{
services.AddSingleton<CurrentProjectService>(provider =>
services.AddScoped<CurrentProjectService>(provider =>
{
var currentProjectService = ActivatorUtilities.CreateInstance<CurrentProjectService>(provider);
currentProjectService.SetupProjectContextForNewDb(project);
Expand Down

0 comments on commit aa5067c

Please sign in to comment.