Commit ece584cc authored by Dominik Charousset's avatar Dominik Charousset Committed by Marian Triebe

Fix expect((void), ...) in testing DSL

parent 44e566b2
...@@ -267,6 +267,23 @@ private: ...@@ -267,6 +267,23 @@ private:
}; };
template <>
class expect_clause<void> : public expect_clause_base<expect_clause<void>> {
public:
template <class... Us>
expect_clause(Us&&... xs)
: expect_clause_base<expect_clause<void>>(std::forward<Us>(xs)...) {
// nop
}
void with() {
CAF_REQUIRE(dest_ != nullptr);
auto ptr = dest_->mailbox().peek();
CAF_CHECK(ptr->content().empty());
this->run_once();
}
};
template <class Config = caf::actor_system_config> template <class Config = caf::actor_system_config>
struct test_coordinator_fixture { struct test_coordinator_fixture {
using scheduler_type = caf::scheduler::test_coordinator; using scheduler_type = caf::scheduler::test_coordinator;
......
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