aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorJesse Cohen <jc@jc.lol>2018-08-26 09:41:57 -0400
committerJesse Cohen <jc@jc.lol>2018-08-26 09:41:57 -0400
commit737670c036e802e0fd8b51efffb41131d08f0204 (patch)
tree960e4bedd70978d8736bcdc5e8fc8d829c31dfab /src/test
parent683838b7e4ea561ee386d8ba7760bcb09b2d8465 (diff)
Use assert when running from multithreaded code as BOOST_CHECK_* are not thread safe
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scheduler_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scheduler_tests.cpp b/src/test/scheduler_tests.cpp
index 001d8eb64b..2af0ab22da 100644
--- a/src/test/scheduler_tests.cpp
+++ b/src/test/scheduler_tests.cpp
@@ -138,11 +138,11 @@ BOOST_AUTO_TEST_CASE(singlethreadedscheduler_ordered)
// 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++);
+ assert(i == counter1++);
});
queue2.AddToProcessQueue([i, &counter2]() {
- BOOST_CHECK_EQUAL(i, counter2++);
+ assert(i == counter2++);
});
}