File tree Expand file tree Collapse file tree
Tests/Integration/Fixtures Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ public async Task InitializeAsync()
4040
4141 public async Task CleanDatabaseAsync ( )
4242 {
43- var cursor = await Database . ListCollectionNamesAsync ( ) ;
44- var collections = await cursor . ToListAsync ( ) ;
43+ var collections = await Database
44+ . ListCollectionNames ( )
45+ . ToListAsync ( ) ;
4546
4647 foreach ( var collectionName in collections )
4748 {
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public WebApplicationFixture()
1717 public async Task InitializeAsync ( )
1818 {
1919 await _databaseFixture . InitializeAsync ( ) ;
20+ await _databaseFixture . CleanDatabaseAsync ( ) ;
2021
2122 Environment . SetEnvironmentVariable ( "Settings__Administration__Username" , "federation.testing.user" ) ;
2223 Environment . SetEnvironmentVariable ( "Settings__Administration__Password" , "federation.testing.password" ) ;
@@ -122,7 +123,6 @@ public async Task DisposeAsync()
122123 HttpClient . Dispose ( ) ;
123124
124125 await _factory . DisposeAsync ( ) ;
125- await _databaseFixture . CleanDatabaseAsync ( ) ;
126126 await _databaseFixture . DisposeAsync ( ) ;
127127 }
128128}
You can’t perform that action at this time.
0 commit comments