Fix unit test case node.search_pending_pruned (#3479)
The test does some asserts that are not directly relevant to the test case and they are race conditions. This commits removes those asserts. Fixes #3478
This commit is contained in:
parent
b897c73afd
commit
a2cb393f9f
1 changed files with 0 additions and 7 deletions
|
@ -490,13 +490,6 @@ TEST (node, search_pending_pruned)
|
|||
// Receive pruned block
|
||||
system.wallet (1)->insert_adhoc (key2.prv);
|
||||
ASSERT_FALSE (system.wallet (1)->search_pending (system.wallet (1)->wallets.tx_begin_read ()));
|
||||
{
|
||||
nano::lock_guard<nano::mutex> guard (node2->active.mutex);
|
||||
auto existing1 (node2->active.blocks.find (send1->hash ()));
|
||||
ASSERT_EQ (node2->active.blocks.end (), existing1);
|
||||
auto existing2 (node2->active.blocks.find (send2->hash ()));
|
||||
ASSERT_EQ (node2->active.blocks.end (), existing2);
|
||||
}
|
||||
ASSERT_TIMELY (10s, node2->balance (key2.pub) == 2 * node2->config.receive_minimum.number ());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue