mirror of
https://github.com/flutter/flutter
synced 2024-10-13 03:32:55 +00:00
Add missing awaits in driver integration test (#17314)
This commit is contained in:
parent
c8da37656a
commit
f37b84f0b6
|
@ -36,7 +36,7 @@ void main() {
|
|||
test('waitForAbsent should resolve when text "present" disappears', () async {
|
||||
// Begin waiting for it to disappear
|
||||
final Completer<Null> whenWaitForAbsentResolves = new Completer<Null>();
|
||||
driver.waitForAbsent(presentText).then(
|
||||
await driver.waitForAbsent(presentText).then(
|
||||
whenWaitForAbsentResolves.complete,
|
||||
onError: whenWaitForAbsentResolves.completeError,
|
||||
);
|
||||
|
@ -61,7 +61,7 @@ void main() {
|
|||
test('waitFor should resolve when text "present" reappears', () async {
|
||||
// Begin waiting for it to reappear
|
||||
final Completer<Null> whenWaitForResolves = new Completer<Null>();
|
||||
driver.waitFor(presentText).then(
|
||||
await driver.waitFor(presentText).then(
|
||||
whenWaitForResolves.complete,
|
||||
onError: whenWaitForResolves.completeError,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue