Make order of EXPECT_EQ more natural, after upgrade to new GTest.

This commit is contained in:
Alexey Sokolov
2018-02-13 08:11:00 +00:00
parent c30e5ef9fd
commit e3a1308a04
13 changed files with 456 additions and 456 deletions

View File

@@ -174,8 +174,8 @@ TEST(Thread, CancelJobWhenDone) {
fd_set fds;
FD_ZERO(&fds);
FD_SET(CThreadPool::Get().getReadFD(), &fds);
EXPECT_EQ(1, select(1 + CThreadPool::Get().getReadFD(), &fds, nullptr,
nullptr, nullptr));
EXPECT_EQ(select(1 + CThreadPool::Get().getReadFD(), &fds, nullptr,
nullptr, nullptr), 1);
// And only cancel it afterwards
CThreadPool::Get().cancelJob(pJob);