Change asserts to BOOST_REQUIRE_* in test_tasklets_failure

This commit is contained in:
Lisa Julia Nebel 2024-07-15 14:56:26 +02:00
parent c78a629528
commit c92bad8cfe

View File

@ -91,8 +91,8 @@ void execute () {
runner = std::make_unique<Opm::TaskletRunner>(numWorkers);
// the master thread is not a worker thread
assert(runner->workerThreadIndex() < 0);
assert(runner->numWorkerThreads() == numWorkers);
BOOST_REQUIRE_LT(runner->workerThreadIndex(), 0);
BOOST_REQUIRE_EQUAL(runner->numWorkerThreads(), numWorkers);
// Dispatch some successful tasklets
for (int i = 0; i < 5; ++i) {