From bcc6d4740c7c5243f006a0ca3c28bc2585012e21 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 10 Sep 2015 21:04:08 -0700 Subject: [PATCH] test: increase dgram timeout for armv6 test-dgram-broadcast-multi-process.js and test-dgram-multicast-multi-process.js were failing on Pi 1 because the test was timing out. Changed static 5000ms timeout to a dynamically determined timeout based on the processor using common.platformTimeout(). PR-URL: https://github.com/nodejs/node/pull/2808 Reviewed-By: Ben Noordhuis Reviewed-By: Jeremiah Senkpiel Reviewed-By: Roman Reiss --- test/internet/test-dgram-broadcast-multi-process.js | 2 +- test/internet/test-dgram-multicast-multi-process.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/internet/test-dgram-broadcast-multi-process.js b/test/internet/test-dgram-broadcast-multi-process.js index c1ca04aa574c11..9df217710eaf9b 100644 --- a/test/internet/test-dgram-broadcast-multi-process.js +++ b/test/internet/test-dgram-broadcast-multi-process.js @@ -7,7 +7,7 @@ var common = require('../common'), Buffer = require('buffer').Buffer, fork = require('child_process').fork, LOCAL_BROADCAST_HOST = '255.255.255.255', - TIMEOUT = 5000, + TIMEOUT = common.platformTimeout(5000), messages = [ new Buffer('First message to send'), new Buffer('Second message to send'), diff --git a/test/internet/test-dgram-multicast-multi-process.js b/test/internet/test-dgram-multicast-multi-process.js index 34db38331dc7b6..0bef2e1dc028c1 100644 --- a/test/internet/test-dgram-multicast-multi-process.js +++ b/test/internet/test-dgram-multicast-multi-process.js @@ -6,7 +6,7 @@ var common = require('../common'), Buffer = require('buffer').Buffer, fork = require('child_process').fork, LOCAL_BROADCAST_HOST = '224.0.0.114', - TIMEOUT = 5000, + TIMEOUT = common.platformTimeout(5000), messages = [ new Buffer('First message to send'), new Buffer('Second message to send'),