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:
dsiganos 2021-09-28 12:38:45 +01:00 committed by GitHub
commit a2cb393f9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ());
}