mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Add more comprehensive assert output to try and discern CI issues
This commit is contained in:
@ -36,10 +36,10 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
BeatmapInfo = { AudioLeadIn = leadIn }
|
BeatmapInfo = { AudioLeadIn = leadIn }
|
||||||
});
|
});
|
||||||
|
|
||||||
AddAssert($"first frame is {expectedStartTime}", () =>
|
AddStep($"check first frame time", () =>
|
||||||
{
|
{
|
||||||
Debug.Assert(player.FirstFrameClockTime != null);
|
Assert.That(player.FirstFrameClockTime, Is.Not.Null);
|
||||||
return Precision.AlmostEquals(player.FirstFrameClockTime.Value, expectedStartTime, lenience_ms);
|
Assert.That(player.FirstFrameClockTime.Value, Is.EqualTo(expectedStartTime).Within(lenience_ms));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,10 +59,10 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
loadPlayerWithBeatmap(new TestBeatmap(new OsuRuleset().RulesetInfo), storyboard);
|
loadPlayerWithBeatmap(new TestBeatmap(new OsuRuleset().RulesetInfo), storyboard);
|
||||||
|
|
||||||
AddAssert($"first frame is {expectedStartTime}", () =>
|
AddStep($"check first frame time", () =>
|
||||||
{
|
{
|
||||||
Debug.Assert(player.FirstFrameClockTime != null);
|
Assert.That(player.FirstFrameClockTime, Is.Not.Null);
|
||||||
return Precision.AlmostEquals(player.FirstFrameClockTime.Value, expectedStartTime, lenience_ms);
|
Assert.That(player.FirstFrameClockTime.Value, Is.EqualTo(expectedStartTime).Within(lenience_ms));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,10 +97,10 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
|
|
||||||
loadPlayerWithBeatmap(new TestBeatmap(new OsuRuleset().RulesetInfo), storyboard);
|
loadPlayerWithBeatmap(new TestBeatmap(new OsuRuleset().RulesetInfo), storyboard);
|
||||||
|
|
||||||
AddAssert($"first frame is {expectedStartTime}", () =>
|
AddStep($"check first frame time", () =>
|
||||||
{
|
{
|
||||||
Debug.Assert(player.FirstFrameClockTime != null);
|
Assert.That(player.FirstFrameClockTime, Is.Not.Null);
|
||||||
return Precision.AlmostEquals(player.FirstFrameClockTime.Value, expectedStartTime, lenience_ms);
|
Assert.That(player.FirstFrameClockTime.Value, Is.EqualTo(expectedStartTime).Within(lenience_ms));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user