Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
removed MstProcessorTest.MstRespectsTransactionsLimit test
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Boldyrev <[email protected]>
  • Loading branch information
MBoldyrev committed Apr 16, 2019
1 parent 43aa3f1 commit b83b172
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions test/module/irohad/multi_sig_transactions/mst_processor_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,35 +326,3 @@ TEST_F(MstProcessorTest, emptyStatePropagation) {
another_peer};
propagation_subject.get_subscriber().on_next(peers);
}

/**
* @given initialised mst processor with 10 as transactions limit
*
* @when two batches of 6 transactions are propagated via mst processor
*
* @then only one batch is accepted due to a limit of transactions
*/
TEST_F(MstProcessorTest, MstRespectsTransactionsLimit) {
auto batch1 =
addSignaturesFromKeyPairs(makeTestBatch(txBuilder(1, time_now),
txBuilder(1, time_now + 1),
txBuilder(1, time_now + 2),
txBuilder(1, time_now + 3),
txBuilder(1, time_now + 4),
txBuilder(1, time_now + 5)),
0,
makeKey());

auto batch2 =
addSignaturesFromKeyPairs(makeTestBatch(txBuilder(1, time_now + 6),
txBuilder(1, time_now + 7),
txBuilder(1, time_now + 8),
txBuilder(1, time_now + 9),
txBuilder(1, time_now + 10),
txBuilder(1, time_now + 11)),
0,
makeKey());

ASSERT_TRUE(mst_processor->propagateBatch(batch1));
ASSERT_FALSE(mst_processor->propagateBatch(batch2));
}

0 comments on commit b83b172

Please sign in to comment.