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:
Stefano Bonicatti 2020-01-16 01:54:33 +01:00 committed by Teddy Reed
parent a6ffa37c6c
commit 86cd9ec520

View File

@ -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);
}