Skip to content

Commit

Permalink
Update tests to reflect the new error behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
marta-lokhova committed Mar 11, 2024
1 parent 5b79014 commit 4e16dca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/herder/test/TransactionQueueTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,14 +1005,12 @@ TEST_CASE_VERSIONS("TransactionQueue with PreconditionsV2",
test.add(txSeqA1S5MinSeqNum,
TransactionQueue::AddResult::ADD_STATUS_DUPLICATE);

// try fill gap (invalid behavior), but account limit kicks in first
// try to fill in gap with a tx
test.add(txSeqA1S2,
TransactionQueue::AddResult::ADD_STATUS_TRY_AGAIN_LATER);
test.add(txSeqA1S2, TransactionQueue::AddResult::ADD_STATUS_ERROR);

// try to fill in gap with a minSeqNum tx
test.add(txSeqA1S4MinSeqNum,
TransactionQueue::AddResult::ADD_STATUS_TRY_AGAIN_LATER);
TransactionQueue::AddResult::ADD_STATUS_ERROR);

test.check({{{account1, 0, {txSeqA1S5MinSeqNum}}, {account2}}, {}});

Expand Down

0 comments on commit 4e16dca

Please sign in to comment.