Commit 158a3cbd authored by Dominik Charousset's avatar Dominik Charousset

Allow fixture to pass arguments to the config

parent 140d6d28
...@@ -576,8 +576,10 @@ struct test_coordinator_fixture { ...@@ -576,8 +576,10 @@ struct test_coordinator_fixture {
/// advances the clock in ideal steps. /// advances the clock in ideal steps.
caf::timespan streaming_cycle; caf::timespan streaming_cycle;
test_coordinator_fixture() template <class... Ts>
: sys(cfg.parse(caf::test::engine::argc(), caf::test::engine::argv()) explicit test_coordinator_fixture(Ts&&... xs)
: cfg(std::forward<Ts>(xs)...),
sys(cfg.parse(caf::test::engine::argc(), caf::test::engine::argv())
.set("scheduler.policy", caf::atom("testing"))), .set("scheduler.policy", caf::atom("testing"))),
self(sys, true), self(sys, true),
sched(dynamic_cast<scheduler_type&>(sys.scheduler())), sched(dynamic_cast<scheduler_type&>(sys.scheduler())),
......
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