Skip to content

Commit

Permalink
Expected hasClients at least 3 times deskflow#4721
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry (Xinyu Hou) committed Jul 31, 2015
1 parent 9d44aff commit de49b46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/unittests/ipc/IpcLogOutputterTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ using ::testing::Matcher;
using ::testing::MatcherCast;
using ::testing::Property;
using ::testing::StrEq;
using ::testing::AtLeast;

using namespace synergy;

Expand All @@ -52,7 +53,7 @@ TEST(IpcLogOutputterTests, write_threadingEnabled_bufferIsSent)

ON_CALL(mockServer, hasClients(_)).WillByDefault(Return(true));

EXPECT_CALL(mockServer, hasClients(_)).Times(3);
EXPECT_CALL(mockServer, hasClients(_)).Times(AtLeast(3));
EXPECT_CALL(mockServer, send(IpcLogLineMessageEq("mock 1\n"), _)).Times(1);
EXPECT_CALL(mockServer, send(IpcLogLineMessageEq("mock 2\n"), _)).Times(1);

Expand Down

0 comments on commit de49b46

Please sign in to comment.