From 9d654a387a8c4b9a38fefb42aea511c3c55ac34a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 5 Jul 2016 20:35:08 -0700 Subject: [PATCH] test: fix flaky test-net-write-slow Increase socket timeout so that there is enough time to reliably run the test on FreeBSD. Fixes: https://github.com/nodejs/node/issues/7516 PR-URL: https://github.com/nodejs/node/pull/7555 Reviewed-By: Matteo Collina Reviewed-By: Santiago Gimeno --- test/parallel/test-net-write-slow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-net-write-slow.js b/test/parallel/test-net-write-slow.js index 5c8ce84dee68ec..9acc1b31c37430 100644 --- a/test/parallel/test-net-write-slow.js +++ b/test/parallel/test-net-write-slow.js @@ -11,7 +11,7 @@ var buf = Buffer.alloc(SIZE, '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);