Unverified Commit 7d4a968f authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

make more spinner tests not flaky (#43955)

parent 0cd8cef8
...@@ -224,7 +224,7 @@ void main() { ...@@ -224,7 +224,7 @@ void main() {
'\b\b\b\b\b\b\b\b $b' // second tick '\b\b\b\b\b\b\b\b $b' // second tick
'\b\b\b\b\b\b\b\b ' // clearing the spinner to put the time '\b\b\b\b\b\b\b\b ' // clearing the spinner to put the time
'\b\b\b\b\b\b\b\b' // clearing the clearing of the spinner '\b\b\b\b\b\b\b\b' // clearing the clearing of the spinner
' 0.0s\n', // replacing it with the time ' 5.0s\n', // replacing it with the time
); );
done = true; done = true;
}); });
...@@ -234,6 +234,7 @@ void main() { ...@@ -234,6 +234,7 @@ void main() {
OutputPreferences: () => OutputPreferences(showColor: true), OutputPreferences: () => OutputPreferences(showColor: true),
Platform: () => FakePlatform(operatingSystem: testOs)..stdoutSupportsAnsi = true, Platform: () => FakePlatform(operatingSystem: testOs)..stdoutSupportsAnsi = true,
Stdio: () => mockStdio, Stdio: () => mockStdio,
Stopwatch: () => mockStopwatch,
}); });
testUsingContext('AnsiStatus works for $testOs', () { testUsingContext('AnsiStatus works for $testOs', () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment