mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-19 08:51:41 +03:00
Tried to fix random unittest fail
This commit is contained in:
parent
7115db1176
commit
deb3db93e6
@ -111,7 +111,7 @@ TEST(IpcLogOutputterTests, write_overBufferRateLimit_lastLineTruncated)
|
|||||||
EXPECT_CALL(mockServer, send(IpcLogLineMessageEq("mock 3\n"), _)).Times(1);
|
EXPECT_CALL(mockServer, send(IpcLogLineMessageEq("mock 3\n"), _)).Times(1);
|
||||||
|
|
||||||
IpcLogOutputter outputter(mockServer, false);
|
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.
|
// log 1 more line than the buffer can accept in time limit.
|
||||||
outputter.write(kNOTIFY, "mock 1");
|
outputter.write(kNOTIFY, "mock 1");
|
||||||
|
Loading…
Reference in New Issue
Block a user