Commit ef2ed71
test: rely less on duplicative common test harness utilities
There are several cleanups here that are not just style nits...
1. The `common.isMainThread` was just a passthrough to the
`isMainThread` export on the worker_thread module. It's
use was inconsistent and just obfuscated the fact that
the test file depend on the `worker_threads` built-in.
By eliminating it we simplify the test harness a bit and
make it clearer which tests depend on the worker_threads
check.
2. The `common.isDumbTerminal` is fairly unnecesary since
that just wraps a public API check.
3. Several of the `common.skipIf....` checks were inconsistently
used and really don't need to be separate utility functions.
A key part of the motivation here is to work towards making more
of the tests more self-contained and less reliant on the common
test harness where possible.
PR-URL: #56712
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent e654c8b commit ef2ed71Copy full SHA for ef2ed71
File tree
Expand file treeCollapse file tree
148 files changed
+672
-290
lines changedOpen diff view settings
Filter options
- test
- abort
- async-hooks
- benchmark
- common
- es-module
- fixtures/permission
- internet
- parallel
- report
- sequential
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
148 files changed
+672
-290
lines changedOpen diff view settings
Collapse file
test/abort/test-abort-backtrace.js
Copy file name to clipboardExpand all lines: test/abort/test-abort-backtrace.js+42-3Lines changed: 42 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
| 2 | + |
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
6 | 45 | |
7 | 46 | |
8 | 47 | |
9 | 48 | |
10 | 49 | |
11 | 50 | |
12 | 51 | |
13 | | - |
| 52 | + |
14 | 53 | |
15 | 54 | |
16 | 55 | |
17 | 56 | |
18 | 57 | |
19 | 58 | |
20 | 59 | |
21 | | - |
| 60 | + |
22 | 61 | |
23 | 62 | |
24 | 63 | |
|
Collapse file
test/async-hooks/init-hooks.js
Copy file name to clipboardExpand all lines: test/async-hooks/init-hooks.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
| ||
161 | 162 | |
162 | 163 | |
163 | 164 | |
164 | | - |
| 165 | + |
165 | 166 | |
166 | 167 | |
167 | 168 | |
|
Collapse file
test/async-hooks/test-crypto-pbkdf2.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-crypto-pbkdf2.js+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
5 | 5 | |
6 | | - |
| 6 | + |
| 7 | + |
| 8 | + |
7 | 9 | |
| 10 | + |
8 | 11 | |
9 | 12 | |
10 | 13 | |
|
Collapse file
test/async-hooks/test-crypto-randomBytes.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-crypto-randomBytes.js+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
5 | 5 | |
6 | | - |
| 6 | + |
| 7 | + |
| 8 | + |
7 | 9 | |
| 10 | + |
8 | 11 | |
9 | 12 | |
10 | 13 | |
|
Collapse file
test/async-hooks/test-enable-disable.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-enable-disable.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
87 | 87 | |
88 | 88 | |
89 | 89 | |
| 90 | + |
90 | 91 | |
91 | | - |
| 92 | + |
92 | 93 | |
93 | 94 | |
94 | 95 | |
|
Collapse file
test/async-hooks/test-fseventwrap.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-fseventwrap.js+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | | - |
| 11 | + |
11 | 12 | |
| 13 | + |
12 | 14 | |
13 | | - |
| 15 | + |
14 | 16 | |
| 17 | + |
15 | 18 | |
16 | 19 | |
17 | 20 | |
|
Collapse file
test/async-hooks/test-fsreqcallback-readFile.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-fsreqcallback-readFile.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | | - |
| 11 | + |
11 | 12 | |
| 13 | + |
12 | 14 | |
13 | 15 | |
14 | 16 | |
|
Collapse file
test/async-hooks/test-getaddrinforeqwrap.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-getaddrinforeqwrap.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | | - |
| 11 | + |
11 | 12 | |
| 13 | + |
12 | 14 | |
13 | 15 | |
14 | 16 | |
|
Collapse file
test/async-hooks/test-getnameinforeqwrap.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-getnameinforeqwrap.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | | - |
| 11 | + |
11 | 12 | |
| 13 | + |
12 | 14 | |
13 | 15 | |
14 | 16 | |
|
Collapse file
test/async-hooks/test-graph.signal.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-graph.signal.js+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
5 | 5 | |
6 | | - |
| 6 | + |
| 7 | + |
| 8 | + |
7 | 9 | |
| 10 | + |
8 | 11 | |
9 | 12 | |
10 | 13 | |
|
0 commit comments