Commit d7a4ccd
test: correct test-worker-eventlooputil
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.
If sending back the message is slow for some reason the test fails.
Adapt the test to compare the time seen inside the worker with the
time read from main thread.
PR-URL: #35891
Fixes: #35844
Refs: #35886
Refs: #35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Backport-PR-URL: #371651 parent eec7542 commit d7a4ccdCopy full SHA for d7a4ccd
2 files changed
+9-10Lines changed: 9 additions & 10 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
test/parallel/test-bootstrap-modules.js
Copy file name to clipboardExpand all lines: test/parallel/test-bootstrap-modules.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
| 96 | + |
96 | 97 | |
97 | 98 | |
98 | 99 | |
|
Collapse file
test/parallel/test-worker-eventlooputil.js
Copy file name to clipboardExpand all lines: test/parallel/test-worker-eventlooputil.js+8-10Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
| 37 | + |
37 | 38 | |
38 | 39 | |
39 | | - |
| 40 | + |
40 | 41 | |
41 | 42 | |
42 | 43 | |
| ||
50 | 51 | |
51 | 52 | |
52 | 53 | |
| 54 | + |
| 55 | + |
53 | 56 | |
54 | 57 | |
55 | 58 | |
56 | 59 | |
57 | 60 | |
58 | | - |
59 | 61 | |
60 | 62 | |
61 | 63 | |
| ||
66 | 68 | |
67 | 69 | |
68 | 70 | |
69 | | - |
70 | 71 | |
71 | | - |
72 | 72 | |
73 | | - |
| 73 | + |
74 | 74 | |
75 | | - |
76 | | - |
77 | | - |
78 | 75 | |
79 | 76 | |
80 | 77 | |
| ||
104 | 101 | |
105 | 102 | |
106 | 103 | |
107 | | - |
108 | | - |
| 104 | + |
| 105 | + |
| 106 | + |
109 | 107 | |
110 | 108 | |
111 | 109 | |
|
0 commit comments