diff --git a/src/test/scheduler_tests.cpp b/src/test/scheduler_tests.cpp --- a/src/test/scheduler_tests.cpp +++ b/src/test/scheduler_tests.cpp @@ -202,11 +202,9 @@ // then the callbacks should run in exactly the order in which they were // enqueued for (int i = 0; i < 100; ++i) { - queue1.AddToProcessQueue( - [i, &counter1]() { BOOST_CHECK_EQUAL(i, counter1++); }); + queue1.AddToProcessQueue([i, &counter1]() { assert(i == counter1++); }); - queue2.AddToProcessQueue( - [i, &counter2]() { BOOST_CHECK_EQUAL(i, counter2++); }); + queue2.AddToProcessQueue([i, &counter2]() { assert(i == counter2++); }); } // finish up