mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Fix TestSettingsMigration
's usage of RecycleLocalStorage
This commit is contained in:
@ -7,7 +7,6 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Audio;
|
||||
using osu.Framework.Audio.Track;
|
||||
@ -100,7 +99,7 @@ namespace osu.Game.Tests.Visual
|
||||
return factory;
|
||||
});
|
||||
|
||||
RecycleLocalStorage();
|
||||
RecycleLocalStorage(false);
|
||||
|
||||
var baseDependencies = base.CreateChildDependencies(parent);
|
||||
|
||||
@ -140,7 +139,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
protected virtual bool UseFreshStoragePerRun => false;
|
||||
|
||||
public virtual void RecycleLocalStorage()
|
||||
public virtual void RecycleLocalStorage(bool isDisposing)
|
||||
{
|
||||
if (localStorage?.IsValueCreated == true)
|
||||
{
|
||||
@ -199,7 +198,7 @@ namespace osu.Game.Tests.Visual
|
||||
if (contextFactory?.IsValueCreated == true)
|
||||
contextFactory.Value.ResetDatabase();
|
||||
|
||||
RecycleLocalStorage();
|
||||
RecycleLocalStorage(true);
|
||||
}
|
||||
|
||||
protected override ITestSceneTestRunner CreateRunner() => new OsuTestSceneTestRunner();
|
||||
|
Reference in New Issue
Block a user