Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
squash: allow ECONNRESET in non-deterministic test
  • Loading branch information
Trott committed Jul 24, 2017
commit 5394374aa4ca292ae69b938910cc82a694f3d94f
4 changes: 4 additions & 0 deletions test/parallel/test-https-set-timeout-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ test(function idleTimeout(cb) {
rejectUnauthorized: false
};
const c = tls.connect(options, () => {
c.on('error', (e) => {
if (e.message !== 'read ECONNRESET')
throw e;
});
c.write('GET /1 HTTP/1.1\r\nHost: localhost\r\n\r\n');
// Keep-Alive
});
Expand Down