Skip to content

Commit

Permalink
Fix DB init.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTedder committed Oct 11, 2023
1 parent 00dc7e3 commit 44db85e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LeaderboardBackend.Test/TestApi/TestApiFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ private static void InitializeDatabase(ApplicationContext dbContext)
{
dbContext.MigrateDatabase();
_migrated = true;
Seed(dbContext);
}

Seed(dbContext);
}
private static void Seed(ApplicationContext dbContext)
{
Expand Down Expand Up @@ -157,5 +158,6 @@ public async Task ResetDatabase()
});

await respawner.ResetAsync(conn);
InitializeDatabase();
}
}

0 comments on commit 44db85e

Please sign in to comment.