File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,19 @@ if (!common.hasCrypto) {
9
9
}
10
10
11
11
const assert = require ( 'assert' ) ;
12
+ const fs = require ( 'fs' ) ;
12
13
const tls = require ( 'tls' ) ;
14
+
13
15
const fork = require ( 'child_process' ) . fork ;
14
- const fs = require ( 'fs' ) ;
15
16
16
17
if ( process . env . CHILD ) {
17
18
const copts = {
18
19
port : process . env . PORT ,
19
- checkServerIdentity : common . noop ,
20
+ checkServerIdentity : common . mustCall ( ) ,
20
21
} ;
21
- const client = tls . connect ( copts , function ( ) {
22
+ const client = tls . connect ( copts , common . mustCall ( function ( ) {
22
23
client . end ( 'hi' ) ;
23
- } ) ;
24
+ } ) ) ;
24
25
return ;
25
26
}
26
27
@@ -29,10 +30,10 @@ const options = {
29
30
cert : fs . readFileSync ( `${ common . fixturesDir } /keys/agent1-cert.pem` ) ,
30
31
} ;
31
32
32
- const server = tls . createServer ( options , function ( s ) {
33
+ const server = tls . createServer ( options , common . mustCall ( function ( s ) {
33
34
s . end ( 'bye' ) ;
34
35
server . close ( ) ;
35
- } ) . listen ( 0 , common . mustCall ( function ( ) {
36
+ } ) ) . listen ( 0 , common . mustCall ( function ( ) {
36
37
const env = {
37
38
CHILD : 'yes' ,
38
39
PORT : this . address ( ) . port ,
You can’t perform that action at this time.
0 commit comments