From 49e2a8afa3f345ec4dc12b8dc99ec546a3b06e6c Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 23 Nov 2021 14:08:03 +0900 Subject: [PATCH] Don't directly reset the database when running tests The containing storage is destroyed anyway, so this is redundant. --- osu.Game/Tests/Visual/OsuTestScene.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/osu.Game/Tests/Visual/OsuTestScene.cs b/osu.Game/Tests/Visual/OsuTestScene.cs index fc7bc324ca..2bacfcebca 100644 --- a/osu.Game/Tests/Visual/OsuTestScene.cs +++ b/osu.Game/Tests/Visual/OsuTestScene.cs @@ -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;