Unverified Commit f37b84f0 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Add missing awaits in driver integration test (#17314)

parent c8da3765
...@@ -36,7 +36,7 @@ void main() { ...@@ -36,7 +36,7 @@ void main() {
test('waitForAbsent should resolve when text "present" disappears', () async { test('waitForAbsent should resolve when text "present" disappears', () async {
// Begin waiting for it to disappear // Begin waiting for it to disappear
final Completer<Null> whenWaitForAbsentResolves = new Completer<Null>(); final Completer<Null> whenWaitForAbsentResolves = new Completer<Null>();
driver.waitForAbsent(presentText).then( await driver.waitForAbsent(presentText).then(
whenWaitForAbsentResolves.complete, whenWaitForAbsentResolves.complete,
onError: whenWaitForAbsentResolves.completeError, onError: whenWaitForAbsentResolves.completeError,
); );
...@@ -61,7 +61,7 @@ void main() { ...@@ -61,7 +61,7 @@ void main() {
test('waitFor should resolve when text "present" reappears', () async { test('waitFor should resolve when text "present" reappears', () async {
// Begin waiting for it to reappear // Begin waiting for it to reappear
final Completer<Null> whenWaitForResolves = new Completer<Null>(); final Completer<Null> whenWaitForResolves = new Completer<Null>();
driver.waitFor(presentText).then( await driver.waitFor(presentText).then(
whenWaitForResolves.complete, whenWaitForResolves.complete,
onError: whenWaitForResolves.completeError, onError: whenWaitForResolves.completeError,
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment