Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/plugins/topic_echo/TopicEcho_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,14 @@ TEST(TopicEchoTest, GZ_UTILS_TEST_DISABLED_ON_WIN32(Echo))
EXPECT_FALSE(plugin->Paused());

// Start echoing
// Use a unique topic to avoid collisions with Publisher_TEST (whose default
// topic is also "/echo") when tests run in parallel.
plugin->SetTopic("/test_topic_echo");
plugin->OnEcho(true);

// Publish string
transport::Node node;
auto pub = node.Advertise<msgs::StringMsg>("/echo");
auto pub = node.Advertise<msgs::StringMsg>("/test_topic_echo");
msgs::StringMsg msg;
msg.set_data("example string");
pub.Publish(msg);
Expand Down
Loading