diff --git a/test/core/transport/bdp_estimator_test.c b/test/core/transport/bdp_estimator_test.c index f72b40e1b72191934b7e3ea2a4860230f9a7b3f0..f55a3ca64391e7622b29ffe159a8d9574476e809 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;