mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Make order of EXPECT_EQ more natural, after upgrade to new GTest.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user