Skip to content

Commit

Permalink
add test case with queue reallocation
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed Nov 11, 2024
1 parent 7d6a2e7 commit 21acf4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration_tests/MultiFrontendThreadsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ TEST_CASE("multi_frontend_threads_with_queue_reallocation")
static constexpr char const* filename = "multi_frontend_threads_with_queue_reallocation.log";
static std::string const logger_name_prefix = "logger_";

// Start the logging backend thread
// Start the logging backend thread with a bit of delay
BackendOptions bo;
bo.sleep_duration = std::chrono::seconds {1};
bo.sleep_duration = std::chrono::seconds{20};
Backend::start();

std::vector<std::thread> threads;
Expand Down Expand Up @@ -84,6 +84,7 @@ TEST_CASE("multi_frontend_threads_with_queue_reallocation")
elem.join();
}

// Wake up the backend thread after all other threads finished
Backend::notify();

// flush all log and remove all loggers
Expand Down

0 comments on commit 21acf4b

Please sign in to comment.