Skip to content

Commit

Permalink
Fix TransactionQueue test that checks wrong semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjove committed Mar 30, 2020
1 parent 198d647 commit f6fc4a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/herder/test/TransactionQueueTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,12 @@ TEST_CASE("TransactionQueue", "[herder][TransactionQueue]")
test.check({{{account1, 1, {txSeqA1T1, txSeqA1T2}},
{account2, 1, {txSeqA2T1, txSeqA2T2}}}});
test.removeApplied({txSeqA1T1, txSeqA2T2});
test.check({{{account1, 0, {txSeqA1T2}}, {account2, 0, {txSeqA2T1}}}});
test.check({{{account1, 0, {txSeqA1T2}}, {account2}}});
test.removeApplied({txSeqA1T2});
test.check({{{account1}, {account2, 0, {txSeqA2T1}}}});
test.check({{{account1}, {account2}}});
test.add(txSeqA1T1, TransactionQueue::AddResult::ADD_STATUS_PENDING);
test.check({{{account1, 0, {txSeqA1T1}}, {account2}}});
test.add(txSeqA2T1, TransactionQueue::AddResult::ADD_STATUS_PENDING);
test.check({{{account1, 0, {txSeqA1T1}}, {account2, 0, {txSeqA2T1}}}});
test.add(txSeqA2T2, TransactionQueue::AddResult::ADD_STATUS_PENDING);
test.check({{{account1, 0, {txSeqA1T1}},
Expand Down

0 comments on commit f6fc4a3

Please sign in to comment.