Skip to content

Commit

Permalink
Fix intermittent failure in active_transactions.confirmation_consiste…
Browse files Browse the repository at this point in the history
…ncy (#2682)

* Fix intermittent failure in active_transactions.confirmation_consistency

`recently_cemented` is only changed in the conf height observer callbacks. This is the intended behavior, but the test was intermittently failing under TSAN.

* Empty commit
  • Loading branch information
guilhermelawless committed Mar 26, 2020
1 parent f9e6d8e commit 142996c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/core_test/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ TEST (active_transactions, confirmation_consistency)
nano::lock_guard<std::mutex> guard (node.active.mutex);
ASSERT_EQ (i + 1, node.active.recently_confirmed.size ());
ASSERT_EQ (block->qualified_root (), node.active.recently_confirmed.back ().first);
ASSERT_EQ (i + 1, node.active.recently_cemented.size ());
ASSERT_TIMELY (1s, i + 1 == node.active.recently_cemented.size ()); // done after a callback
}
}
}
Expand Down

0 comments on commit 142996c

Please sign in to comment.