mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 06:07:26 +09:00
Merge pull request #19312 from frenzibyte/disable-backgorund-beatmap-processor-for-tests
Fix background beatmap processor resetting star ratings in tests
This commit is contained in:
commit
c7e490eaae
@ -171,6 +171,11 @@ namespace osu.Game.Tests.Visual
|
|||||||
API.Login("Rhythm Champion", "osu!");
|
API.Login("Rhythm Champion", "osu!");
|
||||||
|
|
||||||
Dependencies.Get<SessionStatics>().SetValue(Static.MutedAudioNotificationShownOnce, true);
|
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()
|
protected override void Update()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user