Skip to content

Commit

Permalink
Fix unit test case node.search_pending_pruned
Browse files Browse the repository at this point in the history
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 nanocurrency#3478
  • Loading branch information
dsiganos committed Sep 27, 2021
1 parent b897c73 commit 4324f63
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions nano/core_test/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ());
}

Expand Down

0 comments on commit 4324f63

Please sign in to comment.