Fix test that makes assumptions about the impl of async method (#14804)

This commit is contained in:
Mikkel Nygaard Ravn
2018-02-21 20:47:26 +01:00
committed by GitHub
parent 3f884661bd
commit 681192a042

View File

@@ -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'