Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abyss7 committed Jan 9, 2019
1 parent 3566412 commit 83aa082
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/base/locked_queue_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down
2 changes: 1 addition & 1 deletion src/base/string_utils_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ TEST(StringUtilsTest, StringTo) {

EXPECT_EQ(123456u, StringTo<ui32>(to_uint));
EXPECT_EQ(-123456, StringTo<i32>(to_int));
EXPECT_EQ(0u, StringTo<ui32>(to_int));
EXPECT_EQ(4294843840, StringTo<ui32>(to_int));
EXPECT_EQ(0u, StringTo<ui32>(bad_to_int));
}

Expand Down

0 comments on commit 83aa082

Please sign in to comment.