Tried to fix random unittest fail

This commit is contained in:
Jerry (Xinyu Hou) 2015-06-09 13:59:04 -07:00
parent 7115db1176
commit deb3db93e6

View File

@ -111,7 +111,7 @@ TEST(IpcLogOutputterTests, write_overBufferRateLimit_lastLineTruncated)
EXPECT_CALL(mockServer, send(IpcLogLineMessageEq("mock 3\n"), _)).Times(1);
IpcLogOutputter outputter(mockServer, false);
outputter.bufferRateLimit(1, 0.001); // 1ms
outputter.bufferRateLimit(1, 0.01); // 10ms
// log 1 more line than the buffer can accept in time limit.
outputter.write(kNOTIFY, "mock 1");