Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Dec 8, 2024
1 parent 374a050 commit 924ffc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ TEST_CASE("multi threads", "[async]") {
size_t n_threads = 10;
{
auto [logger, async_sink] = creat_async_logger(queue_size, test_sink);

std::vector<std::thread> threads;
for (size_t i = 0; i < n_threads; i++) {
threads.emplace_back([logger, messages] {
threads.emplace_back([&] {
for (size_t j = 0; j < messages; j++) {
logger->info("Hello message #{}", j);
}
Expand Down

0 comments on commit 924ffc4

Please sign in to comment.