| Index: lib/src/spread_args_helper.dart
|
| diff --git a/lib/src/spread_args_helper.dart b/lib/src/spread_args_helper.dart
|
| index 554dcf64c458d7111313299959d8c1af3f20a99d..f93e9ba6133e4e569c9fe39f707d0ab374140fc1 100644
|
| --- a/lib/src/spread_args_helper.dart
|
| +++ b/lib/src/spread_args_helper.dart
|
| @@ -72,15 +72,14 @@ class _SpreadArgsHelper {
|
| // the current test, but we do mark the old test as having an error
|
| // if it previously passed.
|
| if (testCase.result == PASS) {
|
| - testCase._error(
|
| - 'Callback ${id}called ($actualCalls) after test case '
|
| + testCase._error('Callback ${id}called ($actualCalls) after test case '
|
| '${testCase.description} has already been marked as '
|
| '${testCase.result}.$reason');
|
| }
|
| return false;
|
| } else if (maxExpectedCalls >= 0 && actualCalls > maxExpectedCalls) {
|
| throw new TestFailure('Callback ${id}called more times than expected '
|
| - '($maxExpectedCalls).$reason');
|
| + '($maxExpectedCalls).$reason');
|
| }
|
| return true;
|
| }
|
| @@ -136,13 +135,11 @@ class _SpreadArgsHelper {
|
| var args = [a0, a1, a2, a3, a4, a5];
|
| args.removeWhere((a) => a == _PLACE_HOLDER);
|
|
|
| - return _guardAsync(
|
| - () {
|
| - if (shouldCallBack()) {
|
| - return Function.apply(callback, args);
|
| - }
|
| - },
|
| - after, testCase);
|
| + return _guardAsync(() {
|
| + if (shouldCallBack()) {
|
| + return Function.apply(callback, args);
|
| + }
|
| + }, after, testCase);
|
| }
|
|
|
| _guardAsync(Function tryBody, Function finallyBody, TestCase testCase) {
|
|
|