mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
Fixes integration test fixtures disposing the shared web factory per test.
This commit is contained in:
1 parent
1189bbaf36
commit
cbe27ab22e
48 files changed
+112
-117
No files matched your search
+2
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -140,6 +140,6 @@ public class GetPluginsEndpointTests : IClassFixture<AuthenticatedLuminaApiFacto
|
||||
dbContext.Plugins.Remove(plugin);
|
||||
}
|
||||
await dbContext.SaveChangesAsync();
|
||||
_apiFactory.Dispose();
|
||||
await _apiFactory.RemoveTestUserAsync();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user