diff --git a/test/core/util/test_config.cc b/test/core/util/test_config.cc index 950c213d886..b9277724822 100644 --- a/test/core/util/test_config.cc +++ b/test/core/util/test_config.cc @@ -47,6 +47,12 @@ int64_t g_fixture_slowdown_factor = 1; int64_t g_poller_slowdown_factor = 1; +#if GPR_APPLE +static const int64_t kPlatformSlowdownFactor = 3; +#else +static const int64_t kPlatformSlowdownFactor = 1; +#endif + #if GPR_GETPID_IN_UNISTD_H #include static unsigned seed(void) { return static_cast(getpid()); } @@ -75,7 +81,7 @@ int64_t grpc_test_sanitizer_slowdown_factor() { int64_t grpc_test_slowdown_factor() { return grpc_test_sanitizer_slowdown_factor() * g_fixture_slowdown_factor * - g_poller_slowdown_factor; + g_poller_slowdown_factor * kPlatformSlowdownFactor; } gpr_timespec grpc_timeout_seconds_to_deadline(int64_t time_s) {