From 82cce44720fd04b04a139d2d215197e654b9d9aa Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Thu, 11 Jun 2015 17:50:43 -0400 Subject: [PATCH] witness_order_mc_test: Renamed from delegate_groups_mc_test, less verbose logging --- tests/intense/block_tests.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/intense/block_tests.cpp b/tests/intense/block_tests.cpp index b547fa13..993cf074 100644 --- a/tests/intense/block_tests.cpp +++ b/tests/intense/block_tests.cpp @@ -253,7 +253,7 @@ BOOST_FIXTURE_TEST_CASE( update_account_keys, database_fixture ) * This test checks the requirement using Monte Carlo approach * (produce lots of blocks and check the invariant holds). */ -BOOST_FIXTURE_TEST_CASE( delegate_groups_mc_test, database_fixture ) +BOOST_FIXTURE_TEST_CASE( witness_order_mc_test, database_fixture ) { try { size_t num_witnesses = db.get_global_properties().active_witnesses.size(); @@ -276,12 +276,15 @@ BOOST_FIXTURE_TEST_CASE( delegate_groups_mc_test, database_fixture ) while( full_schedule.size() < total_blocks ) { + if( (db.head_block_num() & 0x3FFF) == 0 ) + { + wdump( (db.head_block_num()) ); + } witness_id_type wid = db.get_scheduled_witness( 1 ).first; full_schedule.push_back( wid ); cur_round.push_back( wid ); if( cur_round.size() == num_witnesses ) { - wdump( (cur_round) ); // check that the current round contains exactly 1 copy // of each witness witness_seen.reset();