mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
Fix flaky LoggerTests.test_logger_log_status (#6171)
Logging happens after getting the current time, so the time check should be inverted.
This commit is contained in:
parent
a6ffa37c6c
commit
86cd9ec520
@ -191,7 +191,7 @@ TEST_F(LoggerTests, test_logger_log_status) {
|
||||
EXPECT_EQ(O_WARNING, LoggerTests::last_status.severity);
|
||||
EXPECT_GT(LoggerTests::last_status.line, 0U);
|
||||
EXPECT_EQ(warning, LoggerTests::last_status.message);
|
||||
EXPECT_GE(now, LoggerTests::last_status.time);
|
||||
EXPECT_GE(LoggerTests::last_status.time, now);
|
||||
EXPECT_EQ(getHostIdentifier(), LoggerTests::last_status.identifier);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user