1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:03:08 +08:00

Fix background beatmap processor resetting star ratings in tests

This commit is contained in:
Salman Ahmed 2022-07-23 11:10:59 +03:00
parent 98593fbba1
commit 840ad8fad2

View File

@ -171,6 +171,11 @@ namespace osu.Game.Tests.Visual
API.Login("Rhythm Champion", "osu!");
Dependencies.Get<SessionStatics>().SetValue(Static.MutedAudioNotificationShownOnce, true);
// set applied version to latest so that the BackgroundBeatmapProcessor doesn't consider
// beatmap star ratings as outdated and reset them throughout the test.
foreach (var ruleset in RulesetStore.AvailableRulesets)
ruleset.LastAppliedDifficultyVersion = ruleset.CreateInstance().CreateDifficultyCalculator(Beatmap.Default).Version;
}
protected override void Update()