Skip to content

Commit

Permalink
fix: remove unnecesary code from test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cesar-M-Diaz committed Oct 11, 2022
1 parent 6fdebfc commit 0c1dfec
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/parallel/test-http2-compat-serverresponse-write.js
Expand Up @@ -78,12 +78,7 @@ const assert = require('assert');
const port = server.address().port;
const url = `http://localhost:${port}`;
const client = connect(url, mustCall(() => {
const request = client.request();
request.resume();
request.on('end', mustCall());
request.on('close', mustCall(() => {
client.close();
}));
client.request();
}));

server.once('request', mustCall((request, response) => {
Expand Down

0 comments on commit 0c1dfec

Please sign in to comment.