Skip to content

Commit 41f2dde

Browse files
TrottFishrock123
authored andcommitted
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: #2808 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent ac004b8 commit 41f2dde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/internet/test-dgram-broadcast-multi-process.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var common = require('../common'),
77
Buffer = require('buffer').Buffer,
88
fork = require('child_process').fork,
99
LOCAL_BROADCAST_HOST = '255.255.255.255',
10-
TIMEOUT = 5000,
10+
TIMEOUT = common.platformTimeout(5000),
1111
messages = [
1212
new Buffer('First message to send'),
1313
new Buffer('Second message to send'),

test/internet/test-dgram-multicast-multi-process.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var common = require('../common'),
66
Buffer = require('buffer').Buffer,
77
fork = require('child_process').fork,
88
LOCAL_BROADCAST_HOST = '224.0.0.114',
9-
TIMEOUT = 5000,
9+
TIMEOUT = common.platformTimeout(5000),
1010
messages = [
1111
new Buffer('First message to send'),
1212
new Buffer('Second message to send'),

0 commit comments

Comments
 (0)