Commit a41e0168 by Evan Brown Committed by Copybara-Service

Fix flaky test failures on MSVC.

PiperOrigin-RevId: 616951235
Change-Id: I2d6e95a432285c3f79ef8484848e88e06973f51f
parent d53b1e66
...@@ -162,7 +162,7 @@ TEST_F(PerThreadSemTest, Timeouts) { ...@@ -162,7 +162,7 @@ TEST_F(PerThreadSemTest, Timeouts) {
absl::Duration slop = absl::Milliseconds(1); absl::Duration slop = absl::Milliseconds(1);
#ifdef _MSC_VER #ifdef _MSC_VER
// Use higher slop on MSVC due to flaky test failures. // Use higher slop on MSVC due to flaky test failures.
slop = absl::Milliseconds(4); slop = absl::Milliseconds(8);
#endif #endif
EXPECT_LE(delay - slop, elapsed) EXPECT_LE(delay - slop, elapsed)
<< "Wait returned " << delay - elapsed << "Wait returned " << delay - elapsed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment