From f918b74006deb3b4bad17b07d07ce1f638539cf6 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Tue, 28 Jan 2025 15:51:27 -0800 Subject: [PATCH 1/2] Add debug console messages to Server_TEST.cc Signed-off-by: Steve Peters --- src/Server_TEST.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Server_TEST.cc b/src/Server_TEST.cc index 5f7697eeab..eb4979a0fd 100644 --- a/src/Server_TEST.cc +++ b/src/Server_TEST.cc @@ -338,9 +338,12 @@ TEST_P(ServerFixture, ASSERT_TRUE(test::waitForService(node, service)); gzdbg << "Requesting " << service << std::endl; executed = node.Request(service, 1000, rep, result); + gzdbg << "Response: {executed: " << executed << ", result: " << result << '}' + << std::endl; EXPECT_TRUE(executed); EXPECT_TRUE(result); EXPECT_EQ("TestSensorSystem", rep.data()); + gzdbg << "Shutting down" << std::endl; } ///////////////////////////////////////////////// From 71bc326664efa1e7b3bb24663c7a3b06bd78346e Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Tue, 4 Mar 2025 22:49:21 -0800 Subject: [PATCH 2/2] call server.Stop() Signed-off-by: Steve Peters --- src/Server_TEST.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Server_TEST.cc b/src/Server_TEST.cc index eb4979a0fd..75ec96180b 100644 --- a/src/Server_TEST.cc +++ b/src/Server_TEST.cc @@ -343,7 +343,8 @@ TEST_P(ServerFixture, EXPECT_TRUE(executed); EXPECT_TRUE(result); EXPECT_EQ("TestSensorSystem", rep.data()); - gzdbg << "Shutting down" << std::endl; + server.Stop(); + gzdbg << "Stopping server and shutting down" << std::endl; } /////////////////////////////////////////////////