| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -523,6 +523,7 @@ class Test extends AsyncResource { | |||
| 523 | 523 | ||
| 524 | 524 | // The test has run, so recursively cancel any outstanding subtests and | |
| 525 | 525 | // mark this test as failed if any subtests failed. | |
| 526 | + this.pendingSubtests = []; | ||
| 526 | 527 | for (let i = 0; i < this.subtests.length; i++) { | |
| 527 | 528 | const subtest = this.subtests[i]; | |
| 528 | 529 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,4 +5,4 @@ const test = require('node:test'); | |||
| 5 | 5 | ||
| 6 | 6 | test('pass'); | |
| 7 | 7 | test('never resolving promise', () => new Promise(() => {})); | |
| 8 | - test('fail'); | ||
| 8 | + test('fail', () => console.log('this should not appear')); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ not ok 2 - never resolving promise | |||
| 17 | 17 | # Subtest: fail | |
| 18 | 18 | not ok 3 - fail | |
| 19 | 19 | --- | |
| 20 | - duration_ms: * | ||
| 20 | + duration_ms: 0 | ||
| 21 | 21 | failureType: 'cancelledByParent' | |
| 22 | 22 | error: 'test did not finish before its parent and was cancelled' | |
| 23 | 23 | code: 'ERR_TEST_FAILURE' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments