diff --git a/nano/core_test/wallet.cpp b/nano/core_test/wallet.cpp index 1eca07965e..174c191aa2 100644 --- a/nano/core_test/wallet.cpp +++ b/nano/core_test/wallet.cpp @@ -1144,12 +1144,12 @@ TEST (wallet, foreach_representative_deadlock) bool set = false; node.wallets.foreach_representative ([&node, &set, &system] (nano::public_key const & pub, nano::raw_key const & prv) { node.wallets.foreach_representative ([&node, &set, &system] (nano::public_key const & pub, nano::raw_key const & prv) { - ASSERT_TIMELY(5s, node.wallets.mutex.try_lock () == 1); - node.wallets.mutex.unlock (); + ASSERT_TIMELY (5s, node.wallets.mutex.try_lock () == 1); + node.wallets.mutex.unlock (); set = true; }); - }); - ASSERT_TRUE (set); + }); + ASSERT_TRUE (set); } TEST (wallet, search_pending)