From c28cdf2fbf1565709b359c9cca6c5e29d9592dce Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 02 四月 2021 15:51:20 +0800
Subject: [PATCH] typedef Topic.

---
 utest/utest.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/utest/utest.cpp b/utest/utest.cpp
index b4aa760..637ae26 100644
--- a/utest/utest.cpp
+++ b/utest/utest.cpp
@@ -25,7 +25,7 @@
 
 BOOST_AUTO_TEST_CASE(Temp)
 {
-	std::string topics[] = {
+	Topic topics[] = {
 	    "",
 	    ".",
 	    "a",
@@ -128,7 +128,7 @@
 		}
 	};
 	ThreadManager threads;
-	typedef std::vector<std::string> Topics;
+	typedef std::vector<Topic> Topics;
 	Topics topics;
 	for (int i = 0; i < 100; ++i) {
 		topics.push_back("t" + std::to_string(i));
@@ -208,7 +208,7 @@
 		}
 	};
 	ThreadManager clients, servers;
-	std::vector<std::string> topics = {"topic1", "topic2"};
+	std::vector<Topic> topics = {"topic1", "topic2"};
 	servers.Launch(Server, "server", topics);
 	std::this_thread::sleep_for(100ms);
 	for (auto &t : topics) {

--
Gitblit v1.8.0