From f34a39af747ed9a84a219c005cae97409018ffcd Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" Date: Wed, 14 Jun 2023 10:58:15 -0700 Subject: [PATCH] [xDS e2e tests] add 1K RPCs to try to work around statistical problem (#33409) --- test/cpp/end2end/xds/xds_end2end_test_lib.h | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cpp/end2end/xds/xds_end2end_test_lib.h b/test/cpp/end2end/xds/xds_end2end_test_lib.h index ad9ade0fff5..e848b6f689f 100644 --- a/test/cpp/end2end/xds/xds_end2end_test_lib.h +++ b/test/cpp/end2end/xds/xds_end2end_test_lib.h @@ -1073,6 +1073,7 @@ class XdsEnd2endTest : public ::testing::TestWithParam { GPR_ASSERT(p >= 0 && p <= 1); size_t num_rpcs = ceil(p * (1 - p) * 5.00 * 5.00 / error_tolerance / error_tolerance); + num_rpcs += 1000; // Add 1K as a buffer to avoid flakiness. gpr_log(GPR_INFO, "Sending %" PRIuPTR " RPCs for percentage=%.3f error_tolerance=%.3f",