From 0e1117ac7a036287b59bbd03191f309bce80da33 Mon Sep 17 00:00:00 2001 From: ctiller Date: Fri, 1 Dec 2023 07:44:55 +0000 Subject: [PATCH] Automated change: Fix sanity tests --- src/core/lib/iomgr/combiner.cc | 2 +- test/core/bad_client/tests/initial_settings_frame.cc | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/core/lib/iomgr/combiner.cc b/src/core/lib/iomgr/combiner.cc index d0e635ffd22..0d77bb579d4 100644 --- a/src/core/lib/iomgr/combiner.cc +++ b/src/core/lib/iomgr/combiner.cc @@ -258,7 +258,7 @@ bool grpc_combiner_continue_exec_ctx() { // Define a macro to ease readability of the following switch statement. #define OLD_STATE_WAS(orphaned, elem_count) \ (((orphaned) ? 0 : STATE_UNORPHANED) | \ - ((elem_count) * STATE_ELEM_COUNT_LOW_BIT)) + ((elem_count)*STATE_ELEM_COUNT_LOW_BIT)) // Depending on what the previous state was, we need to perform different // actions. switch (old_state) { diff --git a/test/core/bad_client/tests/initial_settings_frame.cc b/test/core/bad_client/tests/initial_settings_frame.cc index b9bfc50a460..384d1662ab2 100644 --- a/test/core/bad_client/tests/initial_settings_frame.cc +++ b/test/core/bad_client/tests/initial_settings_frame.cc @@ -200,11 +200,10 @@ int main(int argc, char** argv) { GRPC_BAD_CLIENT_DISCONNECT); // too many requests before the settings ack is sent should be cancelled - GRPC_RUN_BAD_CLIENT_TEST( - single_request_verifier, nullptr, - PFX_STR ZERO_SETTING_HDR FOOBAR_0 FOOBAR_2 SETTING_ACK RST_STREAM_1 RST_STREAM_3 - FOOBAR_1, - GRPC_BAD_CLIENT_MAX_CONCURRENT_REQUESTS_OF_ONE); + GRPC_RUN_BAD_CLIENT_TEST(single_request_verifier, nullptr, + PFX_STR ZERO_SETTING_HDR FOOBAR_0 FOOBAR_2 + SETTING_ACK RST_STREAM_1 RST_STREAM_3 FOOBAR_1, + GRPC_BAD_CLIENT_MAX_CONCURRENT_REQUESTS_OF_ONE); grpc_shutdown(); return 0;