Attempt to fix flaky tests with egregious retry rule

This commit is contained in:
Dean Herbert 2023-10-18 17:46:14 +09:00
parent 7479830a8e
commit be321e34e9
No known key found for this signature in database

View File

@ -51,7 +51,8 @@ namespace osu.Game.Rulesets.Osu.Tests
[TestCase(80, 1)] [TestCase(80, 1)]
[TestCase(80, 0)] [TestCase(80, 0)]
[TestCase(80, 10)] [TestCase(80, 10)]
// [TestCase(90, 1)] flaky [TestCase(90, 1)]
[Retry(100)] // headless test doesn't run at high enough precision for this to always enter a tracking state in time.
public void TestVeryShortSlider(float sliderLength, int repeatCount) public void TestVeryShortSlider(float sliderLength, int repeatCount)
{ {
Slider slider; Slider slider;
@ -87,11 +88,12 @@ namespace osu.Game.Rulesets.Osu.Tests
[TestCase(300, false)] [TestCase(300, false)]
[TestCase(200, true)] [TestCase(200, true)]
[TestCase(150, true)] [TestCase(150, true)]
// [TestCase(120, true)] flaky [TestCase(120, true)]
// [TestCase(60, true)] flaky [TestCase(60, true)]
[TestCase(10, true)] [TestCase(10, true)]
// [TestCase(0, true)] headless test doesn't run at high enough precision for this to always enter a tracking state in time. [TestCase(0, true)]
[TestCase(-30, false)] [TestCase(-30, false)]
[Retry(100)] // headless test doesn't run at high enough precision for this to always enter a tracking state in time.
public void TestTailLeniency(float finalPosition, bool hit) public void TestTailLeniency(float finalPosition, bool hit)
{ {
Slider slider; Slider slider;