| Index: lib/src/frontend/expect_async.dart
|
| diff --git a/lib/src/frontend/expect_async.dart b/lib/src/frontend/expect_async.dart
|
| index a95418e8708d4543f91abc28539c46486047da3b..8439e0836df79191e546df9b31497ed7822fdff1 100644
|
| --- a/lib/src/frontend/expect_async.dart
|
| +++ b/lib/src/frontend/expect_async.dart
|
| @@ -170,8 +170,7 @@ class _ExpectedFunction {
|
| // pass it to the invoker anyway.
|
| try {
|
| _actualCalls++;
|
| - if (_invoker.liveTest.isComplete &&
|
| - _invoker.liveTest.state.result == Result.success) {
|
| + if (_invoker.liveTest.state.shouldBeDone) {
|
| throw 'Callback ${_id}called ($_actualCalls) after test case '
|
| '${_invoker.liveTest.test.name} had already completed.$_reason';
|
| } else if (_maxExpectedCalls >= 0 && _actualCalls > _maxExpectedCalls) {
|
|
|