Bump ledger_wait timeout for Travis

This commit is contained in:
wltsmrz
2014-08-07 19:19:08 -07:00
committed by Nik Bougalis
parent 27b48bc16e
commit 50f9b68d61
2 changed files with 4 additions and 2 deletions

View File

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

View File

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