diff options
author | 2017-02-03 14:08:32 -0800 | |
---|---|---|
committer | 2017-02-03 14:08:32 -0800 | |
commit | d72dbec9c54d44370cd60141362b1063d1641739 (patch) | |
tree | bf547332bae1b1a743d03909fa29bc435558b527 | |
parent | 4fd2bf6ec964dae973040984e5b5b387fe2f72e1 (diff) |
Fix Windows
-rw-r--r-- | test/core/transport/bdp_estimator_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/transport/bdp_estimator_test.c b/test/core/transport/bdp_estimator_test.c index f72b40e1b7..f55a3ca643 100644 --- a/test/core/transport/bdp_estimator_test.c +++ b/test/core/transport/bdp_estimator_test.c @@ -124,7 +124,8 @@ static void test_get_estimate_random_values(size_t n) { grpc_bdp_estimator est; grpc_bdp_estimator_init(&est, "test"); int min = INT_MAX; - int max = INT_MIN; + int max = 65535; // Windows rand() has limited range, make sure the ASSERT + // passes for (size_t i = 0; i < n; i++) { int sample = rand(); if (sample < min) min = sample; |