aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-08-27 11:03:40 -0700
committerGravatar yang-g <yangg@google.com>2015-08-27 11:03:40 -0700
commitcf44bb5027b2700ab21f677bc2982e2b1ac0c267 (patch)
treeeca04732aec516cb8906aaebd66906b098b9b83d /test
parentedd4667348bae2bf79958ab7c3ebb06e9fc7fef7 (diff)
use millis to protect against potential overflow
Diffstat (limited to 'test')
-rw-r--r--test/core/util/test_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/util/test_config.h b/test/core/util/test_config.h
index b2cc40bb47..ccef8620c1 100644
--- a/test/core/util/test_config.h
+++ b/test/core/util/test_config.h
@@ -56,7 +56,7 @@ extern double g_fixture_slowdown_factor;
#define GRPC_TIMEOUT_SECONDS_TO_DEADLINE(x) \
gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), \
- gpr_time_from_micros(GRPC_TEST_SLOWDOWN_FACTOR * 1e6 * (x), \
+ gpr_time_from_millis(GRPC_TEST_SLOWDOWN_FACTOR * 1e3 * (x), \
GPR_TIMESPAN))
#define GRPC_TIMEOUT_MILLIS_TO_DEADLINE(x) \