Skip to content

Commit

Permalink
Don't use server comm to generate reply address
Browse files Browse the repository at this point in the history
  • Loading branch information
langmm committed Sep 21, 2023
1 parent dfd4004 commit 4d32b8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unittest/tests/communicators/servercommtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ TEST(ServerComm, recv) {
size_t len = 1;

communication::testing::ServerComm_tester sc(name);
utils::Address addr(sc.getAddress());
ClientComm cc(name, addr);

ELF_BEGIN;
ELF_RECV(0);
RETMSG_META = "\"request_id\": \"12345\", \"response_address\": \"\"";
ELF_META(sc);
ELF_META(cc);
// Failure in realloc
EXPECT_EQ(sc.recv(data, len, false), -RETMSG.size());
// Success
Expand Down

0 comments on commit 4d32b8f

Please sign in to comment.