From 50f9b68d613c8be75fe9de022743b6af859d2fe2 Mon Sep 17 00:00:00 2001 From: wltsmrz Date: Thu, 7 Aug 2014 19:19:08 -0700 Subject: [PATCH] Bump ledger_wait timeout for Travis --- test/robust-transaction-test.js | 2 +- test/testutils.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/robust-transaction-test.js b/test/robust-transaction-test.js index e8f14da9f..4c1fd8276 100644 --- a/test/robust-transaction-test.js +++ b/test/robust-transaction-test.js @@ -300,7 +300,7 @@ suite('Robust transaction submission', function() { if (++ledgers === 3) { callback(); } else { - nextLedger(); + setTimeout(nextLedger, process.env.TRAVIS ? 400 : 100 ); } }); $.remote.ledger_accept(); diff --git a/test/testutils.js b/test/testutils.js index 518c1a599..e9cf2409a 100644 --- a/test/testutils.js +++ b/test/testutils.js @@ -518,11 +518,13 @@ function verify_owner_counts(remote, counts, callback) { async.every(tests, iterator, callback); }; +var isTravis = Boolean(process.env.TRAVIS); + function ledger_wait(remote, tx) { ;(function nextLedger() { remote.once('ledger_closed', function() { if (!tx.finalized) { - setTimeout(nextLedger, 50); + setTimeout(nextLedger, isTravis ? 400 : 100); } }); remote.ledger_accept();