Fix verbose_mode test

This one is easier to "fix", since we're in control of the rayon pool - just adding one extra thread to the default number to make sure we always can one root "spawn" call without stealing from the actual pool.
This commit is contained in:
Ingvar Stepanyan 2020-10-07 15:53:35 +01:00 committed by Josh Holmer
parent 8c1c9e29d8
commit 0ff5d17b81

View file

@ -118,6 +118,7 @@ fn verbose_mode() {
#[cfg(feature = "rayon")]
rayon::ThreadPoolBuilder::new()
.start_handler(move |_| thread_init())
.num_threads(rayon::current_num_threads() + 1)
.build()
.unwrap()
.install(move || rayon::spawn(thread_exec));