Skip to content

Commit

Permalink
fixup: removed destroyed test
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Jan 1, 2020
1 parent 2f0d4b1 commit 9da63be
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions test/parallel/test-http2-compat-serverresponse-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,29 +71,3 @@ const assert = require('assert');
}));
}));
}

{
// Http2ServerResponse.destroy ERR_STREAM_DESTROYED
const server = createServer();
server.listen(0, mustCall(() => {
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();
}));
}));

server.once('request', mustCall((request, response) => {
response.destroy();
response.write('asd', mustCall((err) => {
assert.strictEqual(err.code, null);
client.destroy();
server.close();
}));
}));
}));
}

0 comments on commit 9da63be

Please sign in to comment.