1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 17:45:20 +08:00

Add flaky test attribute to some tests

See occurences like https://github.com/ppy/osu/actions/runs/10471058714.
This commit is contained in:
Dan Balasescu 2024-08-20 22:21:10 +09:00
parent 5bb94000d3
commit 2011d5525f
No known key found for this signature in database

View File

@ -27,6 +27,7 @@ namespace osu.Game.Tests.Visual.Gameplay
[TestCase(2000, 0)]
[TestCase(3000, first_hit_object - 3000)]
[TestCase(10000, first_hit_object - 10000)]
[FlakyTest]
public void TestLeadInProducesCorrectStartTime(double leadIn, double expectedStartTime)
{
loadPlayerWithBeatmap(new TestBeatmap(new OsuRuleset().RulesetInfo)
@ -41,6 +42,7 @@ namespace osu.Game.Tests.Visual.Gameplay
[TestCase(0, 0)]
[TestCase(-1000, -1000)]
[TestCase(-10000, -10000)]
[FlakyTest]
public void TestStoryboardProducesCorrectStartTimeSimpleAlpha(double firstStoryboardEvent, double expectedStartTime)
{
var storyboard = new Storyboard();
@ -64,6 +66,7 @@ namespace osu.Game.Tests.Visual.Gameplay
[TestCase(0, 0, true)]
[TestCase(-1000, -1000, true)]
[TestCase(-10000, -10000, true)]
[FlakyTest]
public void TestStoryboardProducesCorrectStartTimeFadeInAfterOtherEvents(double firstStoryboardEvent, double expectedStartTime, bool addEventToLoop)
{
const double loop_start_time = -20000;