From 83aa0825d0a3dd77a771bdcf49bd58e04bb3100e Mon Sep 17 00:00:00 2001 From: Ivan Lezhankin Date: Wed, 9 Jan 2019 16:42:04 +0300 Subject: [PATCH] Fix tests --- src/base/locked_queue_test.cc | 3 +-- src/base/string_utils_test.cc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/base/locked_queue_test.cc b/src/base/locked_queue_test.cc index 1af86772..2bd87d3a 100644 --- a/src/base/locked_queue_test.cc +++ b/src/base/locked_queue_test.cc @@ -54,9 +54,8 @@ TEST(LockedQueueTest, CloseQueue) { queue.Close(); ASSERT_FALSE(queue.Push(1)); ASSERT_TRUE(!!(actual = queue.Pop())); - actual = 10; + EXPECT_EQ(1, *actual); ASSERT_FALSE(!!(actual = queue.Pop())); - EXPECT_EQ(10, *actual); EXPECT_EQ(0u, queue.Size()); } diff --git a/src/base/string_utils_test.cc b/src/base/string_utils_test.cc index cc69e884..f609eb21 100644 --- a/src/base/string_utils_test.cc +++ b/src/base/string_utils_test.cc @@ -64,7 +64,7 @@ TEST(StringUtilsTest, StringTo) { EXPECT_EQ(123456u, StringTo(to_uint)); EXPECT_EQ(-123456, StringTo(to_int)); - EXPECT_EQ(0u, StringTo(to_int)); + EXPECT_EQ(4294843840, StringTo(to_int)); EXPECT_EQ(0u, StringTo(bad_to_int)); }