Skip to content

Commit

Permalink
Fix test that makes assumptions about the impl of async method (flutt…
Browse files Browse the repository at this point in the history
  • Loading branch information
mravn-google authored Feb 21, 2018
1 parent 3f88466 commit 681192a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flutter_tools/test/dart/pub_get_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 681192a

Please sign in to comment.