diff options
author | David Garcia Quintas <dgq@google.com> | 2017-01-31 16:00:49 -0800 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2017-01-31 16:00:49 -0800 |
commit | 7240b54ddb1a10fc4400c81bede0ac0390aa6e0f (patch) | |
tree | 8d00b26146c012ca02a812d325036130b5a67b37 /test/core | |
parent | 08a215f72c23525cad6a096e65175d9e11e5e8e9 (diff) |
make grpc-encoding:identity implicit
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/end2end/bad_server_response_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/end2end/bad_server_response_test.c b/test/core/end2end/bad_server_response_test.c index d5f428eb82..9cfe0cebe0 100644 --- a/test/core/end2end/bad_server_response_test.c +++ b/test/core/end2end/bad_server_response_test.c @@ -82,7 +82,7 @@ #define HTTP1_DETAIL_MSG "Trying to connect an http1.x server" /* TODO(zyc) Check the content of incomming data instead of using this length */ -#define EXPECTED_INCOMING_DATA_LENGTH (size_t)310 +#define EXPECTED_INCOMING_DATA_LENGTH (size_t)300 struct rpc_state { char *target; @@ -135,7 +135,7 @@ static void handle_read(grpc_exec_ctx *exec_ctx, void *arg, grpc_error *error) { gpr_log(GPR_DEBUG, "got %" PRIuPTR " bytes, expected %" PRIuPTR " bytes", state.incoming_data_length, EXPECTED_INCOMING_DATA_LENGTH); - if (state.incoming_data_length > EXPECTED_INCOMING_DATA_LENGTH) { + if (state.incoming_data_length >= EXPECTED_INCOMING_DATA_LENGTH) { handle_write(exec_ctx); } else { grpc_endpoint_read(exec_ctx, state.tcp, &state.temp_incoming_buffer, |