Commit a8e9851f authored by Dominik Charousset's avatar Dominik Charousset

Fix spawn unit test

parent c29525c9
...@@ -765,7 +765,7 @@ CAF_TEST(typed_await) { ...@@ -765,7 +765,7 @@ CAF_TEST(typed_await) {
CAF_TEST(constructor_attach) { CAF_TEST(constructor_attach) {
class testee : public event_based_actor { class testee : public event_based_actor {
public: public:
explicit testee(actor buddy) : m_buddy(std::move(buddy)) { explicit testee(actor buddy) : m_buddy(buddy) {
attach_functor([=](uint32_t reason) { attach_functor([=](uint32_t reason) {
send(buddy, ok_atom::value, reason); send(buddy, ok_atom::value, reason);
}); });
...@@ -809,12 +809,15 @@ CAF_TEST(constructor_attach) { ...@@ -809,12 +809,15 @@ CAF_TEST(constructor_attach) {
} }
}, },
others >> [=] { others >> [=] {
CAF_TEST_VERBOSE("forward to testee: "
<< to_string(current_message()));
forward_to(m_testee); forward_to(m_testee);
} }
}; };
} }
void on_exit() { void on_exit() {
CAF_TEST_VERBOSE("spawner::on_exit()");
m_testee = invalid_actor; m_testee = invalid_actor;
} }
......
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