From 3ad164267a48b18f7f39b20447d057e160f3d344 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Mon, 22 May 2023 11:37:07 -0700 Subject: [PATCH] Update duration of erase operations to trigger successful erasures when only 2 threads are available --- test/cfoa/exception_erase_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cfoa/exception_erase_tests.cpp b/test/cfoa/exception_erase_tests.cpp index ac4e8c3a..883ef710 100644 --- a/test/cfoa/exception_erase_tests.cpp +++ b/test/cfoa/exception_erase_tests.cpp @@ -147,7 +147,7 @@ namespace { enable_exceptions(); thread_runner( values, [&num_erased, &x, threshold](boost::span /* s */) { - for (std::size_t i = 0; i < 128; ++i) { + for (std::size_t i = 0; i < 256; ++i) { try { auto count = x.erase_if([threshold](value_type& v) { static std::atomic c{0}; @@ -211,7 +211,7 @@ namespace { enable_exceptions(); thread_runner( values, [&num_erased, &x, threshold](boost::span /* s */) { - for (std::size_t i = 0; i < 128; ++i) { + for (std::size_t i = 0; i < 256; ++i) { try { auto count = boost::unordered::erase_if(x, [threshold](value_type& v) {