From a2cb393f9f9f9bfe1b02c3ff537d23220b777bb2 Mon Sep 17 00:00:00 2001 From: dsiganos Date: Tue, 28 Sep 2021 12:38:45 +0100 Subject: [PATCH] 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 --- nano/core_test/node.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nano/core_test/node.cpp b/nano/core_test/node.cpp index 0968dc4b..bdf36925 100644 --- a/nano/core_test/node.cpp +++ b/nano/core_test/node.cpp @@ -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 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 ()); }