mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
fix mockStopWatch creation (#48098)
This commit is contained in:
parent
80ee2ff04f
commit
19c7550540
|
@ -78,7 +78,6 @@ void main() {
|
|||
final RegExp secondDigits = RegExp(r'[0-9,.]*[0-9]m?s');
|
||||
|
||||
AnsiStatus _createAnsiStatus() {
|
||||
mockStopwatch = FakeStopwatch();
|
||||
return AnsiStatus(
|
||||
message: 'Hello world',
|
||||
timeout: const Duration(seconds: 2),
|
||||
|
@ -88,6 +87,7 @@ void main() {
|
|||
}
|
||||
|
||||
setUp(() {
|
||||
mockStopwatch = FakeStopwatch();
|
||||
mockStdio = MockStdio();
|
||||
called = 0;
|
||||
});
|
||||
|
@ -199,6 +199,7 @@ void main() {
|
|||
testUsingContext('Stdout startProgress on colored terminal pauses on $testOs', () async {
|
||||
bool done = false;
|
||||
FakeAsync().run((FakeAsync time) {
|
||||
mockStopwatch.elapsed = const Duration(seconds: 5);
|
||||
final Logger logger = context.get<Logger>();
|
||||
final Status status = logger.startProgress(
|
||||
'Knock Knock, Who\'s There',
|
||||
|
|
Loading…
Reference in a new issue