1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 07:22:54 +08:00

Don't directly reset the database when running tests

The containing storage is destroyed anyway, so this is redundant.
This commit is contained in:
Dean Herbert 2021-11-23 14:08:03 +09:00
parent 8c24d6eb76
commit 49e2a8afa3

View File

@ -90,11 +90,6 @@ namespace osu.Game.Tests.Visual
{
var factory = new DatabaseContextFactory(LocalStorage);
// only reset the database if not using the host storage.
// if we reset the host storage, it will delete global key bindings.
if (isolatedHostStorage == null)
factory.ResetDatabase();
using (var usage = factory.Get())
usage.Migrate();
return factory;