summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Evan Brown <ezb@google.com>2024-03-18 14:38:51 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2024-03-18 14:39:40 -0700
commita41e0168bf2e4f071adc145e0ea8ccec767cd98f (patch)
tree919a30ee83a0b7adbff21e75fb06b798a8921643
parentd53b1e6619e11ebb51e1a29d0847166685307be0 (diff)
Fix flaky test failures on MSVC.
PiperOrigin-RevId: 616951235 Change-Id: I2d6e95a432285c3f79ef8484848e88e06973f51f
-rw-r--r--absl/synchronization/internal/per_thread_sem_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/synchronization/internal/per_thread_sem_test.cc b/absl/synchronization/internal/per_thread_sem_test.cc
index c66bca84..2eb80679 100644
--- a/absl/synchronization/internal/per_thread_sem_test.cc
+++ b/absl/synchronization/internal/per_thread_sem_test.cc
@@ -162,7 +162,7 @@ TEST_F(PerThreadSemTest, Timeouts) {
absl::Duration slop = absl::Milliseconds(1);
#ifdef _MSC_VER
// Use higher slop on MSVC due to flaky test failures.
- slop = absl::Milliseconds(4);
+ slop = absl::Milliseconds(8);
#endif
EXPECT_LE(delay - slop, elapsed)
<< "Wait returned " << delay - elapsed