File: drop-timeout-based-test.patch

package info (click to toggle)
node-nodemailer 7.0.5%2B~7.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,328 kB
  • sloc: javascript: 30,544; makefile: 4
file content (30 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (2)
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();
-            });
-        });
-    });
 });