Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Prev Previous commit
Next Next commit
add comment for wait
  • Loading branch information
bparrishMines committed Aug 5, 2021
commit d6fd3f39534081cf5c33cefb887b0ce64ef8cbbf
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,9 @@ void main() {
);

expect(errorCompleter.future, doesNotComplete);
await Future.delayed(Duration(seconds: 5));
// Since an error can occur after the main page is finish loading, this
// waits to guarantee that an error never occurs.
await Future.delayed(Duration(seconds: 2));
});

testWidgets(
Expand Down Expand Up @@ -1193,7 +1195,9 @@ void main() {
);

expect(errorCompleter.future, doesNotComplete);
await Future.delayed(Duration(seconds: 5));
// Since an error can occur after the main page is finish loading, this
// waits to guarantee that an error never occurs.
await Future.delayed(Duration(seconds: 2));
},
);

Expand Down