mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 11:23:23 +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:
parent
5bb94000d3
commit
2011d5525f
@ -27,6 +27,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
[TestCase(2000, 0)]
|
[TestCase(2000, 0)]
|
||||||
[TestCase(3000, first_hit_object - 3000)]
|
[TestCase(3000, first_hit_object - 3000)]
|
||||||
[TestCase(10000, first_hit_object - 10000)]
|
[TestCase(10000, first_hit_object - 10000)]
|
||||||
|
[FlakyTest]
|
||||||
public void TestLeadInProducesCorrectStartTime(double leadIn, double expectedStartTime)
|
public void TestLeadInProducesCorrectStartTime(double leadIn, double expectedStartTime)
|
||||||
{
|
{
|
||||||
loadPlayerWithBeatmap(new TestBeatmap(new OsuRuleset().RulesetInfo)
|
loadPlayerWithBeatmap(new TestBeatmap(new OsuRuleset().RulesetInfo)
|
||||||
@ -41,6 +42,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
[TestCase(0, 0)]
|
[TestCase(0, 0)]
|
||||||
[TestCase(-1000, -1000)]
|
[TestCase(-1000, -1000)]
|
||||||
[TestCase(-10000, -10000)]
|
[TestCase(-10000, -10000)]
|
||||||
|
[FlakyTest]
|
||||||
public void TestStoryboardProducesCorrectStartTimeSimpleAlpha(double firstStoryboardEvent, double expectedStartTime)
|
public void TestStoryboardProducesCorrectStartTimeSimpleAlpha(double firstStoryboardEvent, double expectedStartTime)
|
||||||
{
|
{
|
||||||
var storyboard = new Storyboard();
|
var storyboard = new Storyboard();
|
||||||
@ -64,6 +66,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
[TestCase(0, 0, true)]
|
[TestCase(0, 0, true)]
|
||||||
[TestCase(-1000, -1000, true)]
|
[TestCase(-1000, -1000, true)]
|
||||||
[TestCase(-10000, -10000, true)]
|
[TestCase(-10000, -10000, true)]
|
||||||
|
[FlakyTest]
|
||||||
public void TestStoryboardProducesCorrectStartTimeFadeInAfterOtherEvents(double firstStoryboardEvent, double expectedStartTime, bool addEventToLoop)
|
public void TestStoryboardProducesCorrectStartTimeFadeInAfterOtherEvents(double firstStoryboardEvent, double expectedStartTime, bool addEventToLoop)
|
||||||
{
|
{
|
||||||
const double loop_start_time = -20000;
|
const double loop_start_time = -20000;
|
||||||
|
Loading…
Reference in New Issue
Block a user