From 9cba111cd951c64d2d18cd477709300ab7e31453 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Wed, 16 May 2018 21:31:27 +0100 Subject: [PATCH] fix: increase timeouts License: MIT Signed-off-by: Alan Shaw --- js/src/ping.js | 2 +- js/src/utils/connections.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/ping.js b/js/src/ping.js index 14dea0da..d47fed44 100644 --- a/js/src/ping.js +++ b/js/src/ping.js @@ -28,7 +28,7 @@ module.exports = (common) => { let ipfsdB before(function (done) { - this.timeout(30 * 1000) + this.timeout(60 * 1000) common.setup((err, factory) => { if (err) return done(err) diff --git a/js/src/utils/connections.js b/js/src/utils/connections.js index 44697e17..0fd2bb84 100644 --- a/js/src/utils/connections.js +++ b/js/src/utils/connections.js @@ -7,7 +7,7 @@ function waitUntilConnected (fromNode, toNode, opts, cb) { } opts = opts || {} - opts.timeout = opts.timeout || 15000 + opts.timeout = opts.timeout || 30000 opts.interval = opts.interval || 1000 const startTime = Date.now()