Fix intermittent failure in active_transactions.confirmation_consistency (#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
This commit is contained in:
parent
f9e6d8e818
commit
142996cdbe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue