fixed the namespace resolution ambiguity with Server and Client class objects in tests
This commit is contained in:
parent
8ea7afce51
commit
56b7bfb3f9
|
@ -55,12 +55,12 @@ TEST(streaming, low_level_sending_strings) {
|
|||
|
||||
io_context_running io;
|
||||
|
||||
Server<tcp::Server> srv(io.service, TESTING_PORT);
|
||||
carla::streaming::low_level::Server<tcp::Server> srv(io.service, TESTING_PORT);
|
||||
srv.SetTimeout(1s);
|
||||
|
||||
auto stream = srv.MakeStream();
|
||||
|
||||
Client<tcp::Client> c;
|
||||
carla::streaming::low_level::Client<tcp::Client> c;
|
||||
c.Subscribe(io.service, stream.token(), [&](auto message) {
|
||||
++message_count;
|
||||
ASSERT_EQ(message.size(), message_text.size());
|
||||
|
@ -90,10 +90,10 @@ TEST(streaming, low_level_unsubscribing) {
|
|||
|
||||
io_context_running io;
|
||||
|
||||
Server<tcp::Server> srv(io.service, TESTING_PORT);
|
||||
carla::streaming::low_level::Server<tcp::Server> srv(io.service, TESTING_PORT);
|
||||
srv.SetTimeout(1s);
|
||||
|
||||
Client<tcp::Client> c;
|
||||
carla::streaming::low_level::Client<tcp::Client> c;
|
||||
for (auto n = 0u; n < 10u; ++n) {
|
||||
auto stream = srv.MakeStream();
|
||||
std::atomic_size_t message_count{0u};
|
||||
|
|
Loading…
Reference in New Issue