Dispose MongoDbFixture asynchronously.
This commit is contained in:
parent
44c0dcf5f4
commit
80525fa4be
1 changed files with 3 additions and 4 deletions
|
@ -8,7 +8,7 @@ using Retroactiune.Settings;
|
|||
|
||||
namespace Retroactiune.IntegrationTests.Retroactiune.WebAPI.Fixtures
|
||||
{
|
||||
public class MongoDbFixture : IDisposable
|
||||
public class MongoDbFixture : IAsyncDisposable
|
||||
{
|
||||
private IMongoDbSettings _settings;
|
||||
public IMongoDatabase Database { get; }
|
||||
|
@ -34,10 +34,9 @@ namespace Retroactiune.IntegrationTests.Retroactiune.WebAPI.Fixtures
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
public void Dispose()
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
DropAsync().GetAwaiter().GetResult();
|
||||
await DropAsync();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue