From 71a9410fc71480a3928716f54b8bb4abfdd0efa8 Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Mon, 30 Aug 2021 10:15:55 -0700 Subject: [PATCH] Another workaround to fix windows SymInitialize error (#27169) --- test/cpp/qps/qps_benchmark_script.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cpp/qps/qps_benchmark_script.bzl b/test/cpp/qps/qps_benchmark_script.bzl index 2084eb11e4d..6f4def977de 100644 --- a/test/cpp/qps/qps_benchmark_script.bzl +++ b/test/cpp/qps/qps_benchmark_script.bzl @@ -31,10 +31,10 @@ load("//test/cpp/qps:json_run_localhost_scenarios.bzl", "JSON_RUN_LOCALHOST_SCEN def add_suffix(name): # NOTE(https://github.com/grpc/grpc/issues/24178): Add the suffix to the name - # to avoid having the target name that 89 or 90 long. - m = len(name) - (89 - len("//test/cpp/qps:")) - if m == 0 or m == 1: - return name + "_" * (2 - m) + # to avoid having the target name that 87, 88, 89 or 90 long. + m = len(name) - (87 - len("//test/cpp/qps:")) + if m >= 0 and m <= 3: + return name + "_" * (4 - m) else: return name