mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Bump ledger_wait timeout for Travis
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user