Skip to content

Commit 681192a

Browse files
authored
Fix test that makes assumptions about the impl of async method (flutter#14804)
1 parent 3f88466 commit 681192a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter_tools/test/dart/pub_get_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ void main() {
3232

3333
new FakeAsync().run((FakeAsync time) {
3434
expect(processMock.lastPubEnvironmment, isNull);
35+
expect(testLogger.statusText, '');
3536
pubGet(context: PubContext.flutterTests, checkLastModified: false).then((Null value) {
3637
error = 'test completed unexpectedly';
3738
}, onError: (dynamic thrownError) {
3839
error = 'test failed unexpectedly: $thrownError';
3940
});
40-
expect(testLogger.statusText, '');
4141
time.elapse(const Duration(milliseconds: 500));
4242
expect(testLogger.statusText,
4343
'Running "flutter packages get" in /...\n'

0 commit comments

Comments
 (0)