From d72dbec9c54d44370cd60141362b1063d1641739 Mon Sep 17 00:00:00 2001 From: Craig Tiller <ctiller@google.com> Date: Fri, 3 Feb 2017 14:08:32 -0800 Subject: [PATCH] Fix Windows --- test/core/transport/bdp_estimator_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- GitLab