Skip to content

Commit

Permalink
Add timeout on sink logging test
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-elk committed Apr 2, 2024
1 parent 3f4dbee commit 32116b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unittests/elklog_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ TEST_F(InitLogTest, TestLoggingToSink)
auto status = _module_under_test->initialize("./log.txt", "log_1");
status = _module_under_test->add_log_sink(test_sink);
std::unique_lock lk(mtx);
cv.wait(lk);
cv.wait_for(lk, std::chrono::seconds(1));
ASSERT_TRUE(logging_success);
}

0 comments on commit 32116b9

Please sign in to comment.