diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-10-23 15:30:16 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-10-23 15:30:16 +0200 |
commit | e4280959f1977663be70a2ac539e44f42aea0cd3 (patch) | |
tree | 0ef973a9eaa507bb5d58c82da68dbcce9f579da5 /modules/remote/tests | |
parent | 05a7fa9a2815b63b5b6f7eea107807e33aa62137 (diff) |
Final stretch to have working rpc example
Diffstat (limited to 'modules/remote/tests')
-rw-r--r-- | modules/remote/tests/remote_loopback.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/remote/tests/remote_loopback.cpp b/modules/remote/tests/remote_loopback.cpp index e1f3898..bd24384 100644 --- a/modules/remote/tests/remote_loopback.cpp +++ b/modules/remote/tests/remote_loopback.cpp @@ -53,12 +53,12 @@ SAW_TEST("Remote Loopback RPC"){ auto eo_send = u32_srv->send(inp, id32); SAW_EXPECT(eo_send.is_value(), "Failed send."); } - auto eo_called = rpc_srv->template call<"foo">(id32); - SAW_EXPECT(eo_called.is_value(), "Failed call."); - auto& called = eo_called.get_value(); - { - auto eo_recv = i64_srv->receive(called); + auto eo_called = rpc_srv->template call<"foo">(id32, id64); + SAW_EXPECT(eo_called.is_value(), (std::string{"Failed call: "} + std::string{eo_called.get_error().get_category()} )); + } + { + auto eo_recv = i64_srv->receive(id64); SAW_EXPECT(eo_recv.is_value(), "Failed receive."); auto& recv = eo_recv.get_value(); SAW_EXPECT((recv.get() == 42), (std::string{"Wrong value received: "} + std::to_string(recv.get()))); |