Skip to content

Commit 701ef63

Browse files
committed
http2: fix js linter error
1 parent 956902d commit 701ef63

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/parallel/test-http2-cancel-while-client-reading.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const http2 = require('http2');
99
const key = fixtures.readKey('agent1-key.pem', 'binary');
1010
const cert = fixtures.readKey('agent1-cert.pem', 'binary');
1111

12-
const server = http2.createSecureServer({key, cert});
12+
const server = http2.createSecureServer({ key, cert });
1313

1414
let client_stream;
1515

@@ -24,14 +24,13 @@ server.on('stream', common.mustCall(function(stream) {
2424

2525
server.listen(0, function() {
2626
const client = http2.connect(`https://localhost:${server.address().port}`,
27-
{rejectUnauthorized: false}
28-
);
29-
client_stream = client.request({ ':method': 'POST'});
27+
{ rejectUnauthorized: false }
28+
);
29+
client_stream = client.request({ ':method': 'POST' });
3030
client_stream.on('close', common.mustCall(() => {
3131
client.close();
3232
server.close();
3333
}));
3434
client_stream.resume();
3535
client_stream.write(Buffer.alloc(1024 * 1024));
3636
});
37-

0 commit comments

Comments
 (0)