Skip to content

Commit

Permalink
test: fix flaky test-net-write-slow
Browse files Browse the repository at this point in the history
Increase socket timeout so that there is enough time to reliably run the
test on FreeBSD.

Fixes: #7516
PR-URL: #7555
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
  • Loading branch information
Trott authored and Myles Borins committed Jul 12, 2016
1 parent cfcf62d commit 9dcc1ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-net-write-slow.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buf.fill(0x61); // 'a'

var server = net.createServer(function(socket) {
socket.setNoDelay();
socket.setTimeout(1000);
socket.setTimeout(9999);
socket.on('timeout', function() {
assert.fail(null, null, 'flushed: ' + flushed +
', received: ' + received + '/' + SIZE * N);
Expand Down

0 comments on commit 9dcc1ea

Please sign in to comment.