Commit 2c07267b authored by Dominik Charousset's avatar Dominik Charousset

Fix thread_hook unit test

parent e9afbc98
......@@ -121,7 +121,7 @@ CAF_TEST(counting_system_without_actor) {
assumed_init_calls = 1;
assumed_thread_count = get_or(cfg, "scheduler.max-threads",
defaults::scheduler::max_threads)
+ 2; // caf.clock and caf.logger
+ 1; // caf.clock
auto& sched = sys.scheduler();
if (sched.detaches_utility_actors())
assumed_thread_count += sched.num_utility_actors();
......@@ -131,7 +131,7 @@ CAF_TEST(counting_system_with_actor) {
assumed_init_calls = 1;
assumed_thread_count = get_or(cfg, "scheduler.max-threads",
defaults::scheduler::max_threads)
+ 3; // caf.clock, caf.logger, and detached actor
+ 2; // caf.clock and detached actor
auto& sched = sys.scheduler();
if (sched.detaches_utility_actors())
assumed_thread_count += sched.num_utility_actors();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment