Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Issue 416133002: Abort unit tests in the event of async failure while awaiting a future. (Closed)

Created:
6 years, 5 months ago by Paul Berry
Modified:
6 years, 4 months ago
Reviewers:
kevmoo
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Abort unit tests in the event of async failure while awaiting a future. Previously, if a unit test returned a future, then while the unit test framework was awaiting that future, asynchronous failures occurring during callback functions would not abort the test. In addition to fixing the bug, fix a flaw in the _defer() function which prevented async_exception_test from actually testing asynchronous exceptions. BUG= http://dartbug.com/20153 R=kevmoo@google.com Committed: https://code.google.com/p/dart/source/detail?r=39013

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rework based on review comments #

Patch Set 3 : Update pubspec and changelog #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -3 lines) Patch
M pkg/unittest/CHANGELOG.md View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/unittest/lib/src/test_case.dart View 1 1 chunk +8 lines, -1 line 0 comments Download
M pkg/unittest/pubspec.yaml View 1 2 1 chunk +1 line, -1 line 0 comments Download
A pkg/unittest/test/async_exception_with_future_test.dart View 1 1 chunk +28 lines, -0 lines 0 comments Download
M pkg/unittest/test/utils.dart View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Paul Berry
6 years, 5 months ago (2014-07-24 15:34:17 UTC) #1
kevmoo
A few questions. Thanks for helping w/ this https://codereview.chromium.org/416133002/diff/1/pkg/unittest/lib/src/test_case.dart File pkg/unittest/lib/src/test_case.dart (right): https://codereview.chromium.org/416133002/diff/1/pkg/unittest/lib/src/test_case.dart#newcode105 pkg/unittest/lib/src/test_case.dart:105: testReturn.catchError(_errorHandler('Test')).whenComplete(_markCallbackComplete); ...
6 years, 4 months ago (2014-07-29 19:59:02 UTC) #2
Paul Berry
PTAL https://codereview.chromium.org/416133002/diff/1/pkg/unittest/lib/src/test_case.dart File pkg/unittest/lib/src/test_case.dart (right): https://codereview.chromium.org/416133002/diff/1/pkg/unittest/lib/src/test_case.dart#newcode105 pkg/unittest/lib/src/test_case.dart:105: testReturn.catchError(_errorHandler('Test')).whenComplete(_markCallbackComplete); On 2014/07/29 19:59:01, kevmoo wrote: > long ...
6 years, 4 months ago (2014-07-29 21:54:38 UTC) #3
kevmoo
Thanks much! Two last things. 1) Update the pubspec to version +4 2) Update the ...
6 years, 4 months ago (2014-07-31 01:19:05 UTC) #4
Paul Berry
On 2014/07/31 01:19:05, kevmoo wrote: > Thanks much! > > Two last things. > > ...
6 years, 4 months ago (2014-07-31 20:41:18 UTC) #5
kevmoo
This is great. Thanks, much. LGTM
6 years, 4 months ago (2014-08-07 22:10:24 UTC) #6
Paul Berry
6 years, 4 months ago (2014-08-07 23:29:35 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r39013 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698