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
early exit on rejection
  • Loading branch information
Karl Böhlmark committed Nov 18, 2016
commit fa6ec18d49750e46cf700c0880cbb64bf758b310
2 changes: 1 addition & 1 deletion test/parallel/test-http-client-timeout-option-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function doRequest() {
http.request(options, (response) => {
const sockets = agent.sockets[`${options.host}:${options.port}:`];
if (sockets.length !== 1) {
reject(new Error('Only one socket should be created'));
return reject(new Error('Only one socket should be created'));
}
const socket = sockets[0];
const timeoutEvent = socket._events.timeout;
Expand Down