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

Fix test faiulres when seasonal set to true due to non-circles intro

This commit is contained in:
Dean Herbert 2024-12-20 16:02:43 +09:00
parent 7ebc9dd843
commit f5b0198077
No known key found for this signature in database

View File

@ -6,6 +6,7 @@
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Development;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shaders;
@ -38,7 +39,9 @@ namespace osu.Game.Screens
private IntroScreen getIntroSequence()
{
if (SeasonalUIConfig.ENABLED)
// Headless tests run too fast to load non-circles intros correctly.
// They will hit the "audio can't play" notification and cause random test failures.
if (SeasonalUIConfig.ENABLED && !DebugUtils.IsNUnitRunning)
return new IntroChristmas(createMainMenu);
if (introSequence == IntroSequence.Random)