Skip to content

Commit

Permalink
Mark recommendation test as flaky
Browse files Browse the repository at this point in the history
Will revisit during song select refactoring no doubt.
  • Loading branch information
peppy committed Jan 7, 2025
1 parent 4f1a6b4 commit b8a10d9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using osu.Framework.Testing;
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Extensions;
using osu.Game.Graphics.Sprites;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
Expand Down Expand Up @@ -85,6 +84,7 @@ decimal getNecessaryPP(int? rulesetID)
}

[Test]
[FlakyTest]
public void TestPresentedBeatmapIsRecommended()
{
List<BeatmapSetInfo> beatmapSets = null;
Expand All @@ -106,6 +106,7 @@ public void TestPresentedBeatmapIsRecommended()
}

[Test]
[FlakyTest]
public void TestCurrentRulesetIsRecommended()
{
BeatmapSetInfo catchSet = null, mixedSet = null;
Expand Down Expand Up @@ -142,6 +143,7 @@ public void TestBestRulesetIsRecommended()
}

[Test]
[FlakyTest]
public void TestSecondBestRulesetIsRecommended()
{
BeatmapSetInfo osuSet = null, mixedSet = null;
Expand All @@ -159,6 +161,7 @@ public void TestSecondBestRulesetIsRecommended()
}

[Test]
[FlakyTest]
public void TestCorrectStarRatingIsUsed()
{
BeatmapSetInfo osuSet = null, maniaSet = null;
Expand All @@ -176,6 +179,7 @@ public void TestCorrectStarRatingIsUsed()
}

[Test]
[FlakyTest]
public void TestBeatmapListingFilter()
{
AddStep("set playmode to taiko", () => ((DummyAPIAccess)API).LocalUser.Value.PlayMode = "taiko");
Expand Down Expand Up @@ -245,7 +249,7 @@ private void presentAndConfirm(Func<BeatmapSetInfo> getImport, int expectedDiff)
AddStep("present beatmap", () => Game.PresentBeatmap(getImport()));

AddUntilStep("wait for song select", () => Game.ScreenStack.CurrentScreen is Screens.Select.SongSelect select && select.BeatmapSetsLoaded);
AddUntilStep("recommended beatmap displayed", () => Game.Beatmap.Value.BeatmapInfo.MatchesOnlineID(getImport().Beatmaps[expectedDiff - 1]));
AddUntilStep("recommended beatmap displayed", () => Game.Beatmap.Value.BeatmapInfo.OnlineID, () => Is.EqualTo(getImport().Beatmaps[expectedDiff - 1].OnlineID));
}

protected override TestOsuGame CreateTestGame() => new NoBeatmapUpdateGame(LocalStorage, API);
Expand Down

0 comments on commit b8a10d9

Please sign in to comment.