From 63d24611ec2be35475e82f6e5ac6ebab421afa95 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 20 Jan 2017 18:33:30 -0800 Subject: [PATCH] test: speed up testClientUpdate() test --- test/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/client.js b/test/client.js index e8b6431..e6631b7 100644 --- a/test/client.js +++ b/test/client.js @@ -119,14 +119,14 @@ function testClientUpdate (t, serverType) { client.on('error', function (err) { t.error(err) }) client.on('warning', function (err) { t.error(err) }) - client.setInterval(2000) + client.setInterval(500) client.start() client.once('update', function () { - client.setInterval(2000) + client.setInterval(500) - // after interval (2s), we should get another update + // after interval, we should get another update client.once('update', function (data) { // received an update! t.equal(data.announce, announceUrl)