| Index: lib/src/invoker.dart
|
| diff --git a/lib/src/invoker.dart b/lib/src/invoker.dart
|
| index 4d14b48d6bf3ccf05ac8962eab502fd42af28af4..edc6d62227ad548c2e9389537d60233ec01e58d4 100644
|
| --- a/lib/src/invoker.dart
|
| +++ b/lib/src/invoker.dart
|
| @@ -172,7 +172,10 @@ class Invoker {
|
| timer.cancel();
|
| _controller.setState(
|
| new State(Status.complete, liveTest.state.result));
|
| - _controller.completer.complete();
|
| +
|
| + // Use [Timer.run] here to avoid starving the DOM or other
|
| + // non-microtask events.
|
| + Timer.run(_controller.completer.complete);
|
| });
|
| }, zoneValues: {#unittest.invoker: this}, onError: handleError);
|
| });
|
|
|