From 7d4a968f0c62a7baaef9790304e76c34fdcd865b Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Fri, 1 Nov 2019 10:55:15 -0700 Subject: [PATCH] make more spinner tests not flaky (#43955) --- .../flutter_tools/test/general.shard/base/logger_test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/flutter_tools/test/general.shard/base/logger_test.dart b/packages/flutter_tools/test/general.shard/base/logger_test.dart index f9ab865d69..c927d36e61 100644 --- a/packages/flutter_tools/test/general.shard/base/logger_test.dart +++ b/packages/flutter_tools/test/general.shard/base/logger_test.dart @@ -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', () {