Commit 5630170
test: account for truthy signal in flaky async_hooks tests
When the spawned child process gets closed with a signal, the exit code
is not set and that is why the exit code assertion was failing. This
change adjusts the test to check the signal and if it is truthy, it
doesn't assert the exit code and instead logs the signal and continues
the rest of the assertions.
Refs: #58463 (comment)
Refs: #58199
Refs: #58463
Signed-off-by: Darshan Sen <raisinten@gmail.com>
PR-URL: #58478
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 1e5363b commit 5630170Copy full SHA for 5630170
2 files changed
+12-4Lines changed: 12 additions & 4 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- test/async-hooks
Expand file treeCollapse file tree
Open diff view settings
Collapse file
test/async-hooks/test-emit-after-on-destroyed.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-emit-after-on-destroyed.js+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
52 | 52 | |
53 | 53 | |
54 | 54 | |
55 | | - |
56 | | - |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
57 | 61 | |
58 | 62 | |
59 | 63 | |
|
Collapse file
test/async-hooks/test-improper-unwind.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-improper-unwind.js+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | | - |
59 | | - |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
60 | 64 | |
61 | 65 | |
62 | 66 | |
|
0 commit comments