mirror of
https://github.com/osukey/osukey.git
synced 2025-07-09 20:29:57 +09: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:
@ -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;
|
||||||
|
Reference in New Issue
Block a user