Skip to content

Commit 40446e4

Browse files
Try to fix flaky tests
1 parent 24e4068 commit 40446e4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

unit_tests/library/extract.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ BOOST_AUTO_TEST_CASE(dummy)
3737
BOOST_CHECK(true);
3838
}
3939

40-
// BOOST_AUTO_TEST_CASE(test_extract_with_invalid_config)
41-
// {
42-
// oneapi::tbb::task_scheduler_handle handle{tbb::attach{}};
43-
// osrm::ExtractorConfig config;
44-
// config.requested_num_threads = std::thread::hardware_concurrency();
45-
// BOOST_CHECK_THROW(osrm::extract(config),
46-
// std::exception); // including osrm::util::exception, osmium::io_error, etc.
47-
// oneapi::tbb::finalize(handle);
48-
// }
40+
BOOST_AUTO_TEST_CASE(test_extract_with_invalid_config)
41+
{
42+
oneapi::tbb::task_scheduler_handle handle{tbb::attach{}};
43+
osrm::ExtractorConfig config;
44+
config.requested_num_threads = std::thread::hardware_concurrency();
45+
BOOST_CHECK_THROW(osrm::extract(config),
46+
std::exception); // including osrm::util::exception, osmium::io_error, etc.
47+
oneapi::tbb::finalize(handle);
48+
}
4949

5050
// BOOST_AUTO_TEST_CASE(test_extract_with_valid_config)
5151
// {

0 commit comments

Comments
 (0)