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