File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,7 @@ function tryTest(fn) {
91
91
. forAttempt ( t => fn . apply ( null , [ t ] . concat ( args ) ) )
92
92
. run ( ) ;
93
93
94
- this . addPendingAttemptAssertion ( running . then ( ret => {
95
- if ( ! discarded && ! ret . passed ) {
96
- throw ret . error ;
97
- }
98
- } ) ) ;
94
+ this . addPendingAttemptAssertion ( ) ;
99
95
100
96
const finishedRunning = running . then ( ret => {
101
97
if ( discarded ) {
@@ -306,13 +302,12 @@ class Test {
306
302
this . saveFirstError ( error ) ;
307
303
}
308
304
309
- addPendingAttemptAssertion ( promise ) {
305
+ addPendingAttemptAssertion ( ) {
310
306
if ( this . finishing ) {
311
307
this . saveFirstError ( new Error ( 'Assertion passed, but test has already finished' ) ) ;
312
308
}
313
309
314
310
this . pendingAttemptCount ++ ;
315
- promise . catch ( error => this . saveFirstError ( error ) ) ;
316
311
}
317
312
318
313
decrementAttemptAssertion ( ) {
You can’t perform that action at this time.
0 commit comments