Commit a49d543
committed
test: enforce better never-settling-promise detection
Tests should be explicit regarding whether a promise is expected to
settle, and the test should fail when the behavior does not meet
expectations.
PR-URL: #60976
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Erick Wendel <erick.workspace@gmail.com>1 parent 41adb54 commit a49d543Copy full SHA for a49d543
83 files changed
+451-354Lines changed: 451 additions & 354 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- test
- addons/callback-scope
- async-hooks
- client-proxy
- es-module
- internet
- js-native-api/test_promise
- node-api/test_instance_data
- parallel
- pummel
- sequential
- tools/eslint-rules
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
Open diff view settings
Collapse file
test/addons/callback-scope/test-resolve-async.js
Copy file name to clipboard+1-5Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | 4 | |
6 | 5 | |
7 | 6 | |
8 | 7 | |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
| 8 | + |
Collapse file
test/async-hooks/test-async-local-storage-errors.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-async-local-storage-errors.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
106 | 106 | |
107 | 107 | |
108 | 108 | |
| 109 | + |
109 | 110 | |
110 | 111 | |
111 | 112 | |
|
Collapse file
test/async-hooks/test-async-local-storage-promises.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-async-local-storage-promises.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
| 14 | + |
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
19 | 19 | |
20 | 20 | |
21 | 21 | |
|
Collapse file
test/async-hooks/test-async-local-storage-thenable.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-async-local-storage-thenable.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
| 51 | + |
52 | 52 | |
53 | 53 | |
Collapse file
test/async-hooks/test-destroy-not-blocked.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-destroy-not-blocked.js+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
64 | 64 | |
65 | 65 | |
66 | 66 | |
67 | | - |
68 | | - |
69 | | - |
| 67 | + |
| 68 | + |
| 69 | + |
70 | 70 | |
71 | 71 | |
72 | 72 | |
|
Collapse file
test/async-hooks/test-promise.chain-promise-before-init-hooks.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-promise.chain-promise-before-init-hooks.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
| 20 | + |
21 | 21 | |
22 | 22 | |
23 | 23 | |
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
| 37 | + |
38 | 38 | |
39 | 39 | |
40 | 40 | |
|
Collapse file
test/async-hooks/test-promise.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-promise.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | | - |
| 26 | + |
27 | 27 | |
28 | 28 | |
29 | 29 | |
|
Collapse file
test/async-hooks/test-promise.promise-before-init-hooks.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-promise.promise-before-init-hooks.js+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
| 23 | + |
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
| 30 | + |
31 | 31 | |
32 | 32 | |
33 | 33 | |
|
Collapse file
test/client-proxy/test-http-proxy-request-max-sockets.mjs
Copy file name to clipboardExpand all lines: test/client-proxy/test-http-proxy-request-max-sockets.mjs+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
| 23 | + |
24 | 24 | |
25 | 25 | |
26 | 26 | |
|
Collapse file
test/client-proxy/test-https-proxy-request-max-sockets.mjs
Copy file name to clipboardExpand all lines: test/client-proxy/test-https-proxy-request-max-sockets.mjs+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | | - |
| 34 | + |
35 | 35 | |
36 | 36 | |
37 | 37 | |
|
0 commit comments