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); } }