Just 2 threads for a test

This commit is contained in:
Martin Hořeňovský
2025-11-09 14:58:10 +01:00
parent a9116c2142
commit 22d54b36e0

View File

@@ -25,7 +25,7 @@
TEST_CASE( "Failed REQUIRE in the main thread is fine" ) { TEST_CASE( "Failed REQUIRE in the main thread is fine" ) {
std::vector<std::thread> threads; std::vector<std::thread> threads;
for ( size_t t = 0; t < 4; ++t) { for ( size_t t = 0; t < 2; ++t) {
threads.emplace_back( [t]() { threads.emplace_back( [t]() {
CAPTURE(t); CAPTURE(t);
for (size_t i = 0; i < 1'000; ++i) { for (size_t i = 0; i < 1'000; ++i) {