make more spinner tests not flaky (#43955)

This commit is contained in:
Jonah Williams
2019-11-01 10:55:15 -07:00
committed by GitHub
parent 0cd8cef8f5
commit 7d4a968f0c

View File

@@ -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 ' // clearing the spinner to put the time
'\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;
});
@@ -234,6 +234,7 @@ void main() {
OutputPreferences: () => OutputPreferences(showColor: true),
Platform: () => FakePlatform(operatingSystem: testOs)..stdoutSupportsAnsi = true,
Stdio: () => mockStdio,
Stopwatch: () => mockStopwatch,
});
testUsingContext('AnsiStatus works for $testOs', () {