From e1a692b33c95e36f4a59f5b4ca18451c695d232f Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Sat, 31 Oct 2015 10:39:16 -0400 Subject: [PATCH] operation_tests2.cpp: Fix witness_create test to comply with new witness schedule (breakage revealed by #427) --- tests/tests/operation_tests2.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/tests/operation_tests2.cpp b/tests/tests/operation_tests2.cpp index ee05ffd9..ecf4a1ad 100644 --- a/tests/tests/operation_tests2.cpp +++ b/tests/tests/operation_tests2.cpp @@ -453,15 +453,16 @@ BOOST_AUTO_TEST_CASE( witness_create ) generate_block(); int produced = 0; - // Make sure we get scheduled exactly once in witnesses.size() blocks + // Make sure we get scheduled at least once in witnesses.size()*2 blocks + // may take this many unless we measure where in the scheduling round we are // TODO: intense_test that repeats this loop many times - for( size_t i=0; i