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();