@@ -9,14 +9,14 @@ const net = require('net');
9
9
10
10
// Http2ServerResponse.finished
11
11
const server = h2 . createServer ( ) ;
12
- server . listen ( 0 , common . mustCall ( function ( ) {
12
+ server . listen ( 0 , common . mustCall ( ( ) => {
13
13
const port = server . address ( ) . port ;
14
- server . once ( 'request' , common . mustCall ( function ( request , response ) {
14
+ server . once ( 'request' , common . mustCall ( ( request , response ) => {
15
15
assert . ok ( response . socket instanceof net . Socket ) ;
16
16
assert . ok ( response . connection instanceof net . Socket ) ;
17
17
assert . strictEqual ( response . socket , response . connection ) ;
18
18
19
- response . on ( 'finish' , common . mustCall ( function ( ) {
19
+ response . on ( 'finish' , common . mustCall ( ( ) => {
20
20
assert . strictEqual ( response . socket , undefined ) ;
21
21
assert . strictEqual ( response . connection , undefined ) ;
22
22
process . nextTick ( common . mustCall ( ( ) => {
@@ -30,15 +30,15 @@ server.listen(0, common.mustCall(function() {
30
30
} ) ) ;
31
31
32
32
const url = `http://localhost:${ port } ` ;
33
- const client = h2 . connect ( url , common . mustCall ( function ( ) {
33
+ const client = h2 . connect ( url , common . mustCall ( ( ) => {
34
34
const headers = {
35
35
':path' : '/' ,
36
36
':method' : 'GET' ,
37
37
':scheme' : 'http' ,
38
38
':authority' : `localhost:${ port } `
39
39
} ;
40
40
const request = client . request ( headers ) ;
41
- request . on ( 'end' , common . mustCall ( function ( ) {
41
+ request . on ( 'end' , common . mustCall ( ( ) => {
42
42
client . close ( ) ;
43
43
} ) ) ;
44
44
request . end ( ) ;
0 commit comments