mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 00:45:58 +00:00
Change timing on "sequence realignment" test.
This commit is contained in:
committed by
Nik Bougalis
parent
1e0efaffe8
commit
2f3677d593
@@ -65,6 +65,9 @@ make_suite('Robust transaction submission', function() {
|
|||||||
tx.once('submitted', function(m) {
|
tx.once('submitted', function(m) {
|
||||||
assert.strictEqual('tefMAX_LEDGER', m.engine_result);
|
assert.strictEqual('tefMAX_LEDGER', m.engine_result);
|
||||||
});
|
});
|
||||||
|
tx.once('error', function(m) {
|
||||||
|
assert.strictEqual('tejMaxLedger', m.engine_result);
|
||||||
|
});
|
||||||
|
|
||||||
// Standalone mode starts with the open ledger as 3, so there's no way
|
// Standalone mode starts with the open ledger as 3, so there's no way
|
||||||
// for this to be anything other than tefMAX_LEDGER.
|
// for this to be anything other than tefMAX_LEDGER.
|
||||||
@@ -97,10 +100,10 @@ make_suite('Robust transaction submission', function() {
|
|||||||
tx.once('submitted', function(m) {
|
tx.once('submitted', function(m) {
|
||||||
assert.strictEqual('terPRE_SEQ', m.engine_result);
|
assert.strictEqual('terPRE_SEQ', m.engine_result);
|
||||||
});
|
});
|
||||||
|
|
||||||
tx.once('final', function() {
|
tx.once('final', function() {
|
||||||
previousTx.once('final', function(){ callback(); });
|
assert(previousTx.finalized,
|
||||||
testutils.ledger_wait($.remote, previousTx);
|
"Expected lastLedger 1 transaction to be finalized");
|
||||||
|
callback();
|
||||||
});
|
});
|
||||||
|
|
||||||
tx.submit();
|
tx.submit();
|
||||||
|
|||||||
Reference in New Issue
Block a user