test: increase test slowdown factor on MacOS (#29781)

* test: double test slowdown factor on MacOS

* increase mac multiplier to 3
pull/29789/head
Mark D. Roth 3 years ago committed by GitHub
parent 0eda91fa28
commit b29c26d6b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      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 <unistd.h>
static unsigned seed(void) { return static_cast<unsigned>(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) {

Loading…
Cancel
Save