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
|
namespace Retroactiune.IntegrationTests.Retroactiune.WebAPI.Fixtures
|
||||||
{
|
{
|
||||||
public class MongoDbFixture : IDisposable
|
public class MongoDbFixture : IAsyncDisposable
|
||||||
{
|
{
|
||||||
private IMongoDbSettings _settings;
|
private IMongoDbSettings _settings;
|
||||||
public IMongoDatabase Database { get; }
|
public IMongoDatabase Database { get; }
|
||||||
|
@ -34,10 +34,9 @@ namespace Retroactiune.IntegrationTests.Retroactiune.WebAPI.Fixtures
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async ValueTask DisposeAsync()
|
||||||
public void Dispose()
|
|
||||||
{
|
{
|
||||||
DropAsync().GetAwaiter().GetResult();
|
await DropAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue