Commit 19e4b964 authored by Dominik Charousset's avatar Dominik Charousset

Add test case for void sync response, relates #172

parent 85ef1f2c
...@@ -237,6 +237,21 @@ class server : public event_based_actor { ...@@ -237,6 +237,21 @@ class server : public event_based_actor {
} // namespace <anonymous> } // namespace <anonymous>
CAF_TEST(test_void_res) {
using testee_a = typed_actor<replies_to<int, int>::with<void>>;
auto buddy = spawn_typed([]() -> testee_a::behavior_type {
return [](int, int) {
// nop
};
});
scoped_actor self;
self->sync_send(buddy, 1, 2).await([] {
CAF_MESSAGE("received void res");
});
self->send_exit(buddy, exit_reason::kill);
self->await_all_other_actors_done();
}
CAF_TEST(sync_send) { CAF_TEST(sync_send) {
{ {
scoped_actor self; scoped_actor self;
......
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