We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8e8ad commit 289aff7Copy full SHA for 289aff7
test/integration/test-redirection.js
@@ -18,8 +18,9 @@ describe('redirection', () => {
18
resetAfterUse: false
19
});
20
await proxy.start();
21
- let conn = await base.createConnection({ host: 'localhost', port: proxy.port() });
+ let conn = null;
22
try {
23
+ conn = await base.createConnection({ host: 'localhost', port: proxy.port() });
24
assert.equal(proxy.port(), conn.info.port);
25
let permitRedirection = true;
26
@@ -36,7 +37,7 @@ describe('redirection', () => {
36
37
await conn2.end();
38
}
39
} finally {
- conn.end();
40
+ if (conn) conn.end();
41
proxy.close();
42
43
0 commit comments