mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 13:42: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:
parent
8c24d6eb76
commit
49e2a8afa3
@ -90,11 +90,6 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
var factory = new DatabaseContextFactory(LocalStorage);
|
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())
|
using (var usage = factory.Get())
|
||||||
usage.Migrate();
|
usage.Migrate();
|
||||||
return factory;
|
return factory;
|
||||||
|
Loading…
Reference in New Issue
Block a user