aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/bad_server_response_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/end2end/bad_server_response_test.c')
-rw-r--r--test/core/end2end/bad_server_response_test.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/core/end2end/bad_server_response_test.c b/test/core/end2end/bad_server_response_test.c
index 5b39d10143..cca75f54a5 100644
--- a/test/core/end2end/bad_server_response_test.c
+++ b/test/core/end2end/bad_server_response_test.c
@@ -66,13 +66,10 @@
#define UNPARSEABLE_RESP "Bad Request\n"
-#define HTTP1_DETAIL_MSG "Connection dropped: received http1.x response"
-
#define HTTP2_DETAIL_MSG(STATUS_CODE) \
"Received http2 header with status: " #STATUS_CODE
-#define UNPARSEABLE_DETAIL_MSG \
- "Connection dropped: received unparseable response"
+#define UNPARSEABLE_DETAIL_MSG "Failed parsing HTTP/2"
/* TODO(zyc) Check the content of incomming data instead of using this length */
#define EXPECTED_INCOMING_DATA_LENGTH (size_t)310
@@ -212,7 +209,7 @@ static void start_rpc(int target_port, grpc_status_code expected_status,
gpr_log(GPR_DEBUG, "Rpc status: %d, details: %s", status, details);
GPR_ASSERT(status == expected_status);
- GPR_ASSERT(0 == strcmp(details, expected_detail));
+ GPR_ASSERT(NULL != strstr(details, expected_detail));
grpc_metadata_array_destroy(&initial_metadata_recv);
grpc_metadata_array_destroy(&trailing_metadata_recv);
@@ -337,7 +334,7 @@ int main(int argc, char **argv) {
/* http1 response */
run_test(HTTP1_RESP, sizeof(HTTP1_RESP) - 1, GRPC_STATUS_UNAVAILABLE,
- HTTP1_DETAIL_MSG);
+ UNPARSEABLE_DETAIL_MSG);
return 0;
}