Skip to content

Commit 2534444

Browse files
committed
tests: db clean-up
1 parent 4104769 commit 2534444

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/QueryableValues.SqlServer.Tests/Integration/DbContextFixture.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public DbContextFixture()
1616

1717
public void Dispose()
1818
{
19-
Db.Dispose();
2019
}
2120

2221
public async Task InitializeAsync()
@@ -88,9 +87,10 @@ private async Task Seed()
8887
await Db.SaveChangesAsync();
8988
}
9089

91-
public Task DisposeAsync()
90+
public async Task DisposeAsync()
9291
{
93-
return Task.CompletedTask;
92+
await Db.Database.EnsureDeletedAsync();
93+
Db.Dispose();
9494
}
9595
}
9696

0 commit comments

Comments
 (0)