1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 05:09:54 +08:00

Simplify test

This commit is contained in:
Salman Alshamrani
2025-05-21 23:47:54 +03:00
Unverified
parent 08c8b6f17a
commit a8dc954efd
@@ -216,8 +216,6 @@ namespace osu.Game.Tests.Visual.SongSelectV2
[Test]
public void TestLoading()
{
Action proceed = null!;
AddStep("override request handling", () =>
{
currentOnlineSet = null;
@@ -227,7 +225,7 @@ namespace osu.Game.Tests.Visual.SongSelectV2
switch (request)
{
case GetBeatmapSetRequest set:
proceed = () => set.TriggerSuccess(currentOnlineSet!);
Scheduler.AddDelayed(() => set.TriggerSuccess(currentOnlineSet!), 500);
return true;
default:
@@ -243,7 +241,7 @@ namespace osu.Game.Tests.Visual.SongSelectV2
currentOnlineSet = onlineSet;
Beatmap.Value = working;
});
AddStep("finish load", () => proceed());
AddWaitStep("wait", 5);
AddStep("set beatmap", () =>
{
@@ -256,7 +254,7 @@ namespace osu.Game.Tests.Visual.SongSelectV2
currentOnlineSet = onlineSet;
Beatmap.Value = working;
});
AddStep("finish load", () => proceed());
AddWaitStep("wait", 5);
AddStep("no user tags", () =>
{
@@ -268,7 +266,7 @@ namespace osu.Game.Tests.Visual.SongSelectV2
currentOnlineSet = onlineSet;
Beatmap.Value = working;
});
AddStep("finish load", () => proceed());
AddWaitStep("wait", 5);
AddStep("no user tags", () =>
{
@@ -280,7 +278,7 @@ namespace osu.Game.Tests.Visual.SongSelectV2
currentOnlineSet = onlineSet;
Beatmap.Value = working;
});
AddStep("finish load", () => proceed());
AddWaitStep("wait", 5);
}
private (WorkingBeatmap, APIBeatmapSet) createTestBeatmap()