diff options
author | Yang Gao <yangg@google.com> | 2017-04-21 10:19:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-21 10:19:26 -0700 |
commit | 305e4eba83056236c526f3c881615fbe8a740ccf (patch) | |
tree | 3afbe40525d21df0c0169b3741a53e629a6b6041 | |
parent | b7f1129cf2d88851e15b8770d2b53d1e33e955a7 (diff) | |
parent | 03876f66e17fc8a614407bb2aa317b21a2ef7319 (diff) |
Merge pull request #10775 from yang-g/http2_client
Fix http2_interop test for c++ and python
-rw-r--r-- | src/python/grpcio_tests/tests/http2/negative_http2_client.py | 2 | ||||
-rw-r--r-- | test/cpp/interop/http2_client.cc | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/python/grpcio_tests/tests/http2/negative_http2_client.py b/src/python/grpcio_tests/tests/http2/negative_http2_client.py index b184e62cfd..90f54e80bb 100644 --- a/src/python/grpcio_tests/tests/http2/negative_http2_client.py +++ b/src/python/grpcio_tests/tests/http2/negative_http2_client.py @@ -96,8 +96,6 @@ def _rst_during_data(stub): def _rst_after_data(stub): resp_future = stub.UnaryCall.future(_SIMPLE_REQUEST) - _validate_payload_type_and_length( - next(resp_future), messages_pb2.COMPRESSABLE, _RESPONSE_SIZE) _validate_status_code_and_details(resp_future, grpc.StatusCode.INTERNAL, "Received RST_STREAM with error code 0") diff --git a/test/cpp/interop/http2_client.cc b/test/cpp/interop/http2_client.cc index 38a437f39f..2109e34616 100644 --- a/test/cpp/interop/http2_client.cc +++ b/test/cpp/interop/http2_client.cc @@ -108,7 +108,7 @@ bool Http2Client::DoRstAfterData() { SimpleResponse response; AssertStatusCode(SendUnaryCall(&response), grpc::StatusCode::INTERNAL); - GPR_ASSERT(response.has_payload()); // data should be received + // There is no guarantee that data would be received. gpr_log(GPR_DEBUG, "Done testing reset stream after data"); return true; |