Commit 676e618
committed
test: apply correct assert.fail() arguments
The assert.fail function signature has the message as the third argument
but, understandably, it is often assumed that it is the first argument
(or at least the first argument if no other arguments are passed).
This corrects the assert.fail() invocations in the Node.js tests.
Before:
assert.fail('message');
// result: AssertionError: 'message' undefined undefined
After:
assert.fail(null, null, 'message');
// result: AssertionError: message
PR-URL: #3378
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent 0140e1b commit 676e618Copy full SHA for 676e618
File tree
Expand file treeCollapse file tree
13 files changed
+13
-13
lines changedOpen diff view settings
Filter options
- test
- internet
- parallel
Expand file treeCollapse file tree
13 files changed
+13
-13
lines changedOpen diff view settings
Collapse file
test/internet/test-dgram-send-cb-quelches-error.js
Copy file name to clipboardExpand all lines: test/internet/test-dgram-send-cb-quelches-error.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
31 | | - |
| 31 | + |
32 | 32 | |
33 | 33 | |
34 | 34 | |
|
Collapse file
test/parallel/test-fs-write-stream.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-write-stream.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
| 27 | + |
28 | 28 | |
29 | 29 | |
30 | 30 | |
|
Collapse file
test/parallel/test-http-header-response-splitting.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-header-response-splitting.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
| 30 | + |
31 | 31 | |
32 | 32 | |
33 | 33 | |
|
Collapse file
test/parallel/test-http-localaddress-bind-error.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-localaddress-bind-error.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
| 27 | + |
28 | 28 | |
29 | 29 | |
30 | 30 | |
|
Collapse file
test/parallel/test-https-localaddress-bind-error.js
Copy file name to clipboardExpand all lines: test/parallel/test-https-localaddress-bind-error.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | | - |
| 38 | + |
39 | 39 | |
40 | 40 | |
41 | 41 | |
|
Collapse file
test/parallel/test-net-connect-paused-connection.js
Copy file name to clipboardExpand all lines: test/parallel/test-net-connect-paused-connection.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
| 14 | + |
15 | 15 | |
Collapse file
test/parallel/test-net-write-slow.js
Copy file name to clipboardExpand all lines: test/parallel/test-net-write-slow.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | | - |
| 17 | + |
18 | 18 | |
19 | 19 | |
20 | 20 | |
|
Collapse file
test/parallel/test-path-parse-format.js
Copy file name to clipboardExpand all lines: test/parallel/test-path-parse-format.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
89 | 89 | |
90 | 90 | |
91 | 91 | |
92 | | - |
| 92 | + |
93 | 93 | |
94 | 94 | |
95 | 95 | |
|
Collapse file
test/parallel/test-repl-reset-event.js
Copy file name to clipboardExpand all lines: test/parallel/test-repl-reset-event.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
48 | | - |
| 48 | + |
49 | 49 | |
50 | 50 | |
51 | 51 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
389 | 389 | |
390 | 390 | |
391 | 391 | |
392 | | - |
| 392 | + |
393 | 393 | |
0 commit comments