Fix threads not properly stopped on streaming tests

This commit is contained in:
Néstor Subirón 2020-05-28 17:15:37 +02:00 committed by bernat
parent 4f11c03b94
commit 172aa55186
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,8 @@ TEST(streaming, low_level_sending_strings) {
std::this_thread::sleep_for(2ms);
ASSERT_GE(message_count, number_of_messages - 3u);
io.service.stop();
}
TEST(streaming, low_level_unsubscribing) {
@ -118,6 +120,8 @@ TEST(streaming, low_level_unsubscribing) {
ASSERT_GE(message_count, number_of_messages - 3u);
}
io.service.stop();
}
TEST(streaming, low_level_tcp_small_message) {