Skip to content

Commit

Permalink
Prevent the occasional (timing related) test case failure
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Jul 23, 2024
1 parent 92bd7dc commit d29d30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/cpp/asyncappendertestcase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ class AsyncAppenderTestCase : public AppenderSkeletonTestCase
asyncAppender->setErrorHandler(errorHandler);

LOG4CXX_INFO(root, "Message");
std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) );
std::this_thread::sleep_for( std::chrono::milliseconds( 30 ) );
LOGUNIT_ASSERT(errorHandler->errorReported());
LOG4CXX_INFO(root, "Message");
auto& v = vectorAppender->getVector();
Expand Down

0 comments on commit d29d30a

Please sign in to comment.