From 681192a042a21adb6966cc49ee3e4acd369014be Mon Sep 17 00:00:00 2001 From: Mikkel Nygaard Ravn Date: Wed, 21 Feb 2018 20:47:26 +0100 Subject: [PATCH] Fix test that makes assumptions about the impl of async method (#14804) --- packages/flutter_tools/test/dart/pub_get_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/test/dart/pub_get_test.dart b/packages/flutter_tools/test/dart/pub_get_test.dart index 578adf8b53..0e6b90a677 100644 --- a/packages/flutter_tools/test/dart/pub_get_test.dart +++ b/packages/flutter_tools/test/dart/pub_get_test.dart @@ -32,12 +32,12 @@ void main() { new FakeAsync().run((FakeAsync time) { expect(processMock.lastPubEnvironmment, isNull); + expect(testLogger.statusText, ''); pubGet(context: PubContext.flutterTests, checkLastModified: false).then((Null value) { error = 'test completed unexpectedly'; }, onError: (dynamic thrownError) { error = 'test failed unexpectedly: $thrownError'; }); - expect(testLogger.statusText, ''); time.elapse(const Duration(milliseconds: 500)); expect(testLogger.statusText, 'Running "flutter packages get" in /...\n'