test: fix flaky test-http-set-timeout

Increase timeout on Raspberry Pi to alleviate flakiness.

Fixes: https://github.com/nodejs/node/issues/5854
PR-URL: https://github.com/nodejs/node/pull/5856
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Rich Trott 2016-03-22 20:12:45 -07:00
parent c6656db352
commit 04ac1c0c07

View File

@ -20,7 +20,7 @@ server.listen(common.PORT, function() {
var errorTimer = setTimeout(function() {
throw new Error('Timeout was not successful');
}, 2000);
}, common.platformTimeout(2000));
var x = http.get({port: common.PORT, path: '/'});
x.on('error', function() {