File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
22
'use strict' ;
23
23
require ( '../common' ) ;
24
24
const assert = require ( 'assert' ) ;
25
+ const debug = require ( 'util' ) . debuglog ( 'test' ) ;
25
26
26
27
const testCases = require ( '../fixtures/process-exit-code-cases' ) ;
27
28
@@ -30,7 +31,7 @@ if (!process.argv[2]) {
30
31
} else {
31
32
const i = parseInt ( process . argv [ 2 ] ) ;
32
33
if ( Number . isNaN ( i ) ) {
33
- console . log ( 'Invalid test case index' ) ;
34
+ debug ( 'Invalid test case index' ) ;
34
35
process . exit ( 100 ) ;
35
36
return ;
36
37
}
@@ -48,7 +49,7 @@ function parent() {
48
49
assert . strictEqual (
49
50
code , exit ,
50
51
`wrong exit for ${ arg } -${ name } \nexpected:${ exit } but got:${ code } ` ) ;
51
- console . log ( `ok - ${ arg } exited with ${ exit } ` ) ;
52
+ debug ( `ok - ${ arg } exited with ${ exit } ` ) ;
52
53
} ) ;
53
54
} ;
54
55
You can’t perform that action at this time.
0 commit comments