diff --git a/test/TopicLengthTest.cpp b/test/TopicLengthTest.cpp index 980a0ab..b36bc78 100644 --- a/test/TopicLengthTest.cpp +++ b/test/TopicLengthTest.cpp @@ -12,6 +12,8 @@ using namespace osdev::components::mqtt; using namespace osdev::components::log; +static const std::string main_topic = "test/"; + /**************************************************************************** * H E L P E R C L A S S E S ****************************************************************************/ @@ -62,8 +64,8 @@ class TopicTester for(int nCount = 1; nCount < max_number_of_chars; nCount++) { std::string subtopic(nCount, 'a'); - std::string topic = std::string("topics/" + subtopic); - std::string message(std::to_string(topic.size())); + std::string topic = std::string(main_topic + subtopic); + std::string message(std::to_string(topic.size()) + " (" + std::to_string(subtopic.size()) + ")"); m_publisher->publish(topic, message); }