Skip to content

Commit

Permalink
Fixed an error where test databases were not dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
jhartmann123 committed May 19, 2021
1 parent 4e1776d commit c2113a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>5.1.2</Version>
<Version>5.1.3</Version>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ public void SeedDb(TDbContext dbContext)
//Seems somehow connected to dbContext.SaveChangesAsync() when called in the seed. (at least in my tests).
//Running the seed with an extra Task.Run() around works...
Task.Run(() => seed?.Invoke(dbContext).Wait()).Wait();

dbCreated = true;
}

public DbContextOptions<TDbContext> GetContextOptions() => options;
Expand Down

0 comments on commit c2113a3

Please sign in to comment.