-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test_runner: cleanup test timeout abort listener
fix #48475 PR-URL: #48915 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
- Loading branch information
Showing
6 changed files
with
194 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
test/fixtures/test-runner/output/before-and-after-each-too-many-listeners.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict'; | ||
const { beforeEach, afterEach, test} = require("node:test"); | ||
beforeEach(() => {}); | ||
afterEach(() => {}); | ||
|
||
for (let i = 1; i <= 11; ++i) { | ||
test(`${i}`, () => {}); | ||
} |
65 changes: 65 additions & 0 deletions
65
test/fixtures/test-runner/output/before-and-after-each-too-many-listeners.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
TAP version 13 | ||
# Subtest: 1 | ||
ok 1 - 1 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 2 | ||
ok 2 - 2 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 3 | ||
ok 3 - 3 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 4 | ||
ok 4 - 4 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 5 | ||
ok 5 - 5 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 6 | ||
ok 6 - 6 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 7 | ||
ok 7 - 7 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 8 | ||
ok 8 - 8 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 9 | ||
ok 9 - 9 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 10 | ||
ok 10 - 10 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 11 | ||
ok 11 - 11 | ||
--- | ||
duration_ms: * | ||
... | ||
1..11 | ||
# tests 11 | ||
# suites 0 | ||
# pass 11 | ||
# fail 0 | ||
# cancelled 0 | ||
# skipped 0 | ||
# todo 0 | ||
# duration_ms * |
8 changes: 8 additions & 0 deletions
8
test/fixtures/test-runner/output/before-and-after-each-with-timeout-too-many-listeners.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict'; | ||
const { beforeEach, afterEach, test} = require("node:test"); | ||
beforeEach(() => {}, {timeout: 10000}); | ||
afterEach(() => {}, {timeout: 10000}); | ||
|
||
for (let i = 1; i <= 11; ++i) { | ||
test(`${i}`, () => {}); | ||
} |
65 changes: 65 additions & 0 deletions
65
...ixtures/test-runner/output/before-and-after-each-with-timeout-too-many-listeners.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
TAP version 13 | ||
# Subtest: 1 | ||
ok 1 - 1 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 2 | ||
ok 2 - 2 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 3 | ||
ok 3 - 3 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 4 | ||
ok 4 - 4 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 5 | ||
ok 5 - 5 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 6 | ||
ok 6 - 6 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 7 | ||
ok 7 - 7 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 8 | ||
ok 8 - 8 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 9 | ||
ok 9 - 9 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 10 | ||
ok 10 - 10 | ||
--- | ||
duration_ms: * | ||
... | ||
# Subtest: 11 | ||
ok 11 - 11 | ||
--- | ||
duration_ms: * | ||
... | ||
1..11 | ||
# tests 11 | ||
# suites 0 | ||
# pass 11 | ||
# fail 0 | ||
# cancelled 0 | ||
# skipped 0 | ||
# todo 0 | ||
# duration_ms * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters