From 264bf17bc256f8b16f662cfcf8c2882e76e2becc Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Fri, 2 Jun 2017 18:11:06 +0900 Subject: [PATCH] Significantly reduce test case time. --- osu.Desktop.VisualTests/Tests/TestCaseManiaPlayfield.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Desktop.VisualTests/Tests/TestCaseManiaPlayfield.cs b/osu.Desktop.VisualTests/Tests/TestCaseManiaPlayfield.cs index 1b60e3165d..b9c2ed66c6 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseManiaPlayfield.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseManiaPlayfield.cs @@ -43,7 +43,7 @@ namespace osu.Desktop.VisualTests.Tests }; const double start_time = 500; - const double duration = 1000; + const double duration = 500; Func createTimingChange = (time, gravity) => { @@ -67,7 +67,7 @@ namespace osu.Desktop.VisualTests.Tests { Clear(); - var rateAdjustClock = new StopwatchClock(true) { Rate = 0.5 }; + var rateAdjustClock = new StopwatchClock(true) { Rate = 1 }; ManiaPlayfield playField; Add(playField = new ManiaPlayfield(4) @@ -133,10 +133,10 @@ namespace osu.Desktop.VisualTests.Tests AddStep("Right special style", () => createPlayfield(8, SpecialColumnPosition.Right)); AddStep("Notes with input", () => createPlayfieldWithNotes(false)); - AddWaitStep(15); + AddWaitStep((int)Math.Ceiling((start_time + duration) / TimePerAction)); AddStep("Notes with gravity", () => createPlayfieldWithNotes(true)); - AddWaitStep(15); + AddWaitStep((int)Math.Ceiling((start_time + duration) / TimePerAction)); } private void triggerKeyDown(Column column)