File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const options = {
38
38
} ;
39
39
40
40
// create server
41
- const server = tls . Server ( options , common . mustCall ( function ( socket ) {
41
+ const server = tls . Server ( options , common . mustCall ( ( socket ) => {
42
42
socket . end ( 'Goodbye' ) ;
43
43
} , 2 ) ) ;
44
44
@@ -49,13 +49,13 @@ server.listen(0, function() {
49
49
const client1 = tls . connect ( {
50
50
port : this . address ( ) . port ,
51
51
rejectUnauthorized : false
52
- } , function ( ) {
52
+ } , ( ) => {
53
53
console . log ( 'connect1' ) ;
54
54
assert . ok ( ! client1 . isSessionReused ( ) , 'Session *should not* be reused.' ) ;
55
55
session1 = client1 . getSession ( ) ;
56
56
} ) ;
57
57
58
- client1 . on ( 'close' , function ( ) {
58
+ client1 . on ( 'close' , ( ) => {
59
59
console . log ( 'close1' ) ;
60
60
61
61
const opts = {
@@ -64,12 +64,12 @@ server.listen(0, function() {
64
64
session : session1
65
65
} ;
66
66
67
- const client2 = tls . connect ( opts , function ( ) {
67
+ const client2 = tls . connect ( opts , ( ) => {
68
68
console . log ( 'connect2' ) ;
69
69
assert . ok ( client2 . isSessionReused ( ) , 'Session *should* be reused.' ) ;
70
70
} ) ;
71
71
72
- client2 . on ( 'close' , function ( ) {
72
+ client2 . on ( 'close' , ( ) => {
73
73
console . log ( 'close2' ) ;
74
74
server . close ( ) ;
75
75
} ) ;
You can’t perform that action at this time.
0 commit comments