Fixes integration test fixtures disposing the shared web factory per test.

This commit is contained in:
BinaryAlley committed 2026-08-18 09:03:53 -07:00
1 parent 1189bbaf36
commit cbe27ab22e
48 files changed
+112 -117

No files matched your search

@@ -146,9 +146,8 @@ public class GetLibraryMetadataProvidersEndpointTests : IClassFixture<Authentica
/// <summary>
/// Disposes API factory resources.
/// </summary>
public Task DisposeAsync()
public async Task DisposeAsync()
{
_apiFactory.Dispose();
return Task.CompletedTask;
await _apiFactory.RemoveTestUserAsync();
}
}
@@ -138,9 +138,8 @@ public class GetPluginSettingsEndpointTests : IClassFixture<AuthenticatedLuminaA
/// <summary>
/// Disposes API factory resources.
/// </summary>
public Task DisposeAsync()
public async Task DisposeAsync()
{
_apiFactory.Dispose();
return Task.CompletedTask;
await _apiFactory.RemoveTestUserAsync();
}
}
@@ -140,6 +140,6 @@ public class GetPluginsEndpointTests : IClassFixture<AuthenticatedLuminaApiFacto
dbContext.Plugins.Remove(plugin);
}
await dbContext.SaveChangesAsync();
_apiFactory.Dispose();
await _apiFactory.RemoveTestUserAsync();
}
}
@@ -124,9 +124,8 @@ public class ReorderLibraryMetadataProvidersEndpointTests : IClassFixture<Authen
/// <summary>
/// Disposes API factory resources.
/// </summary>
public Task DisposeAsync()
public async Task DisposeAsync()
{
_apiFactory.Dispose();
return Task.CompletedTask;
await _apiFactory.RemoveTestUserAsync();
}
}
@@ -154,9 +154,8 @@ public class SetLibraryMetadataProviderEnabledEndpointTests : IClassFixture<Auth
/// <summary>
/// Disposes API factory resources.
/// </summary>
public Task DisposeAsync()
public async Task DisposeAsync()
{
_apiFactory.Dispose();
return Task.CompletedTask;
await _apiFactory.RemoveTestUserAsync();
}
}
@@ -151,9 +151,8 @@ public class UpdatePluginSettingsEndpointTests : IClassFixture<AuthenticatedLumi
/// <summary>
/// Disposes API factory resources.
/// </summary>
public Task DisposeAsync()
public async Task DisposeAsync()
{
_apiFactory.Dispose();
return Task.CompletedTask;
await _apiFactory.RemoveTestUserAsync();
}
}