Skip to content

Commit

Permalink
delay
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Jun 23, 2022
1 parent 7c331a1 commit db97f79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/dart/canvas_test.dart
Expand Up @@ -436,7 +436,8 @@ void main() {
expect(e.message, contains('unable to create render target at specified size'));
break;
}
await null;
// Let the event loop turn.
await Future<void>.delayed(const Duration(milliseconds: 1));
}
expect(caughtException, true);
expect(
Expand Down

0 comments on commit db97f79

Please sign in to comment.