mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
test: remove duplicate test
`test/parallel/test-http-agent-no-wait.js` is basically a duplicate of `test/parallel/test-http-client-close-with-default-agent.js`, remove it. PR-URL: https://github.com/nodejs/node/pull/44051 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Feng Yu <F3n67u@outlook.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
parent
89578110fc
commit
57ff476c33
2 changed files with 1 additions and 25 deletions
|
@ -1,24 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
const assert = require('assert');
|
||||
const http = require('http');
|
||||
|
||||
const server = http.createServer(function(req, res) {
|
||||
res.writeHead(200);
|
||||
res.end();
|
||||
});
|
||||
|
||||
server.listen(0, common.mustCall(() => {
|
||||
const req = http.get({ port: server.address().port }, (res) => {
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
|
||||
res.resume();
|
||||
server.close();
|
||||
});
|
||||
|
||||
req.end();
|
||||
}));
|
||||
|
||||
// This timer should never go off as the server will close the socket
|
||||
setTimeout(common.mustNotCall(), 1000).unref();
|
|
@ -20,4 +20,4 @@ server.listen(0, common.mustCall(() => {
|
|||
}));
|
||||
|
||||
// This timer should never go off as the server will close the socket
|
||||
setTimeout(common.mustNotCall(), common.platformTimeout(10000)).unref();
|
||||
setTimeout(common.mustNotCall(), common.platformTimeout(1000)).unref();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue