Skip to content

Commit

Permalink
Prevent unit test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Jul 19, 2024
1 parent 582ef5e commit 034d58a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/cpp/asyncappendertestcase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,13 @@ class AsyncAppenderTestCase : public AppenderSkeletonTestCase
std::vector<std::thread> threads;
for ( int x = 0; x < threadCount; x++ )
{
std::thread thr([root, LEN]()
threads.emplace_back([root, LEN]()
{
for (size_t i = 0; i < LEN; i++)
{
LOG4CXX_DEBUG(root, "message" << i);
}
});
threads.push_back( std::move(thr) );
}

for ( auto& thr : threads )
Expand Down
1 change: 1 addition & 0 deletions src/test/cpp/net/telnetappendertestcase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class TelnetAppenderTestCase : public AppenderSkeletonTestCase
#endif
LOG4CXX_INFO(root, "Hello, World " << i);
}
appender->close();
}

};
Expand Down

0 comments on commit 034d58a

Please sign in to comment.