Fix test that makes assumptions about the impl of async method (#14804)
This commit is contained in:
committed by
GitHub
parent
3f884661bd
commit
681192a042
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user