diff --git a/tdutils/test/port.cpp b/tdutils/test/port.cpp index 03f45862..f467daa9 100644 --- a/tdutils/test/port.cpp +++ b/tdutils/test/port.cpp @@ -129,7 +129,6 @@ TEST(Port, Writev) { #include #include -#include static std::mutex m; static std::vector ptrs; @@ -197,9 +196,9 @@ TEST(Post, SignalsAndThread) { } std::sort(ptrs.begin(), ptrs.end()); CHECK(ptrs == ans); - ASSERT_EQ(10u, std::set(addrs.begin(), addrs.end()).size()); + std::sort(addrs.begin(), addrs.end()); + ASSERT_TRUE(std::unique(addrs.begin(), addrs.end()) == addrs.end()); //LOG(ERROR) << addrs; } - //ASSERT_EQ(10u, ptrs.size()); } #endif