mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 22:37:21 +08:00
Use better method to ensure online availability tracker is in a clean state
This commit is contained in:
parent
ac3b7aa893
commit
ca7e11057c
@ -60,9 +60,8 @@ namespace osu.Game.Tests.Online
|
||||
testBeatmapInfo = getTestBeatmapInfo(testBeatmapFile);
|
||||
testBeatmapSet = testBeatmapInfo.BeatmapSet;
|
||||
|
||||
var existing = beatmaps.QueryBeatmapSet(s => s.OnlineID == testBeatmapSet.OnlineID);
|
||||
if (existing != null)
|
||||
beatmaps.Delete(existing.Value);
|
||||
ContextFactory.Context.Write(r => r.RemoveAll<BeatmapSetInfo>());
|
||||
ContextFactory.Context.Write(r => r.RemoveAll<BeatmapInfo>());
|
||||
|
||||
selectedItem.Value = new PlaylistItem
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user