1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Description: drop one timeout-based test
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2024-04-22
--- a/test/smtp-connection/http-proxy-client-test.js
+++ b/test/smtp-connection/http-proxy-client-test.js
@@ -79,22 +79,4 @@
});
});
});
-
- it('should fail with timeout', (t, done) => {
- let proxyServer = proxy(http.createServer());
- proxyServer.authenticate = (req, cb) => {
- cb(null, req.headers['proxy-authorization'] === 'Basic dGVzdDpwZXN0');
- };
- proxyServer.listen(PROXY_PORT, () => {
- httpProxyClient.timeout = 5 * 1000;
- // using kreata.ee (178.33.49.65) as the destination. This port is not allowed by firewall so it times out
- httpProxyClient('http://test:pest@localhost:' + PROXY_PORT, 12345, '178.33.49.65', (err, socket) => {
- assert.ok(err);
- assert.ok(!socket);
- assert.strictEqual(err.code, 'ETIMEDOUT');
-
- setImmediate(done) && proxyServer.close();
- });
- });
- });
});
|