mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 06:12:55 +08:00
Fix some failing tests
This commit is contained in:
parent
8e9377914d
commit
3fc9990411
@ -7,6 +7,7 @@ using osu.Framework.Input;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
using osu.Game.Rulesets.Osu.Objects;
|
||||
using osu.Game.Rulesets.UI;
|
||||
using osu.Game.Screens.Edit;
|
||||
@ -29,7 +30,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
||||
|
||||
private Slider? slider => editorBeatmap.HitObjects.OfType<Slider>().FirstOrDefault();
|
||||
|
||||
private TimelineHitObjectBlueprint blueprint => editor.ChildrenOfType<TimelineHitObjectBlueprint>().FirstOrDefault()!;
|
||||
private TimelineHitObjectBlueprint blueprint => editor.ChildrenOfType<TimelineHitObjectBlueprint>().FirstOrDefault(b => b.Item.GetEndTime() != b.Item.StartTime)!;
|
||||
|
||||
private DifficultyPointPiece difficultyPointPiece => blueprint.ChildrenOfType<DifficultyPointPiece>().First();
|
||||
|
||||
|
@ -22,7 +22,8 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
{
|
||||
var setInfo = beatmaps.QueryBeatmapSet(b => b.Protected && b.Hash == IntroChristmas.CHRISTMAS_BEATMAP_SET_HASH);
|
||||
|
||||
Beatmap.Value = beatmaps.GetWorkingBeatmap(setInfo!.Value.Beatmaps.First());
|
||||
if (setInfo != null)
|
||||
Beatmap.Value = beatmaps.GetWorkingBeatmap(setInfo.Value.Beatmaps.First());
|
||||
});
|
||||
|
||||
AddStep("create lighting", () => Child = new MainMenuSeasonalLighting());
|
||||
|
@ -12,6 +12,7 @@ using osu.Framework.Audio;
|
||||
using osu.Framework.Audio.Sample;
|
||||
using osu.Framework.Audio.Track;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Development;
|
||||
using osu.Framework.Extensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Screens;
|
||||
@ -200,7 +201,7 @@ namespace osu.Game.Screens.Menu
|
||||
PrepareMenuLoad();
|
||||
LoadMenu();
|
||||
|
||||
if (!Debugger.IsAttached)
|
||||
if (!Debugger.IsAttached && !DebugUtils.IsNUnitRunning)
|
||||
{
|
||||
notifications.Post(new SimpleErrorNotification
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user