Commit 4971c3b
test: fix flaky test-dgram-empty-packet & friends
* Liberal use of common.mustCall()
* Rename test-dgram-empty-packet -> test-dgram-send-empty-packet
* Remove use of timers to avoid CI failures like seen in the Ref below:
```
not ok 237 parallel/test-dgram-empty-packet
---
duration_ms: 0.717
severity: fail
stack: |-
...
throw new Error('Timeout');
^
Error: Timeout
at Timeout._onTimeout
...
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
```
Refs: https://ci.nodejs.org/job/node-test-commit-freebsd/5341/nodes=freebsd11-x64/console:
PR-URL: #9724
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>1 parent 6297b9a commit 4971c3bCopy full SHA for 4971c3b
File tree
Expand file treeCollapse file tree
4 files changed
+56
-55
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
4 files changed
+56
-55
lines changedOpen diff view settings
Collapse file
test/parallel/test-dgram-empty-packet.js
Copy file name to clipboardExpand all lines: test/parallel/test-dgram-empty-packet.js-40Lines changed: 0 additions & 40 deletions
This file was deleted.
Collapse file
test/parallel/test-dgram-send-empty-array.js
Copy file name to clipboard+11-5Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
6 | 4 | |
7 | 5 | |
8 | 6 | |
9 | 7 | |
10 | 8 | |
11 | 9 | |
| 10 | + |
| 11 | + |
| 12 | + |
12 | 13 | |
13 | 14 | |
| 15 | + |
| 16 | + |
14 | 17 | |
15 | 18 | |
16 | 19 | |
| 20 | + |
17 | 21 | |
18 | 22 | |
19 | 23 | |
20 | | - |
21 | | - |
22 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
23 | 29 | |
24 | 30 | |
Collapse file
test/parallel/test-dgram-send-empty-buffer.js
Copy file name to clipboard+11-10Lines changed: 11 additions & 10 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 | + |
| 11 | + |
10 | 12 | |
11 | 13 | |
12 | | - |
| 14 | + |
13 | 15 | |
14 | 16 | |
15 | | - |
16 | | - |
| 17 | + |
| 18 | + |
| 19 | + |
17 | 20 | |
18 | 21 | |
19 | 22 | |
20 | 23 | |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
Collapse file
test/parallel/test-dgram-send-empty-packet.js
Copy file name to clipboard+34Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 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 | + |
0 commit comments