From cc609143e96a0125ae9fad2a64da6d198786c0ff Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 11 Jan 2020 16:28:24 +0300 Subject: [PATCH] Make one unit test more maintainable --- .../ZooKeeper/tests/gtest_zkutil_test_multi_exception.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Common/ZooKeeper/tests/gtest_zkutil_test_multi_exception.cpp b/dbms/src/Common/ZooKeeper/tests/gtest_zkutil_test_multi_exception.cpp index 2f332c7039d..37240175c04 100644 --- a/dbms/src/Common/ZooKeeper/tests/gtest_zkutil_test_multi_exception.cpp +++ b/dbms/src/Common/ZooKeeper/tests/gtest_zkutil_test_multi_exception.cpp @@ -85,7 +85,7 @@ TEST(zkutil, multi_async) ops.clear(); auto res = fut.get(); - ASSERT_TRUE(res.error == Coordination::ZOK); + ASSERT_EQ(res.error, Coordination::ZOK); ASSERT_EQ(res.responses.size(), 2); } @@ -121,7 +121,7 @@ TEST(zkutil, multi_async) ops.clear(); auto res = fut.get(); - ASSERT_TRUE(res.error == Coordination::ZNODEEXISTS); + ASSERT_EQ(res.error, Coordination::ZNODEEXISTS); ASSERT_EQ(res.responses.size(), 2); } }