mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Ensure LoadOszIntoOsu returns actual imported map
This commit is contained in:
parent
7d090e0d2e
commit
8a54fdd4e6
@ -821,15 +821,13 @@ namespace osu.Game.Tests.Beatmaps.IO
|
||||
|
||||
var manager = osu.Dependencies.Get<BeatmapManager>();
|
||||
|
||||
await manager.Import(temp);
|
||||
|
||||
var imported = manager.GetAllUsableBeatmapSets();
|
||||
var importedSet = await manager.Import(temp);
|
||||
|
||||
ensureLoaded(osu);
|
||||
|
||||
waitForOrAssert(() => !File.Exists(temp), "Temporary file still exists after standard import", 5000);
|
||||
|
||||
return imported.LastOrDefault();
|
||||
return manager.GetAllUsableBeatmapSets().Find(beatmapSet => beatmapSet.ID == importedSet.ID);
|
||||
}
|
||||
|
||||
private void deleteBeatmapSet(BeatmapSetInfo imported, OsuGameBase osu)
|
||||
|
Loading…
Reference in New Issue
Block a user