Skip to content

Commit 4e16dca

Browse files
committed
Update tests to reflect the new error behavior
1 parent 5b79014 commit 4e16dca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/herder/test/TransactionQueueTests.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1005,14 +1005,12 @@ TEST_CASE_VERSIONS("TransactionQueue with PreconditionsV2",
10051005
test.add(txSeqA1S5MinSeqNum,
10061006
TransactionQueue::AddResult::ADD_STATUS_DUPLICATE);
10071007

1008-
// try fill gap (invalid behavior), but account limit kicks in first
10091008
// try to fill in gap with a tx
1010-
test.add(txSeqA1S2,
1011-
TransactionQueue::AddResult::ADD_STATUS_TRY_AGAIN_LATER);
1009+
test.add(txSeqA1S2, TransactionQueue::AddResult::ADD_STATUS_ERROR);
10121010

10131011
// try to fill in gap with a minSeqNum tx
10141012
test.add(txSeqA1S4MinSeqNum,
1015-
TransactionQueue::AddResult::ADD_STATUS_TRY_AGAIN_LATER);
1013+
TransactionQueue::AddResult::ADD_STATUS_ERROR);
10161014

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

0 commit comments

Comments
 (0)