From 9a929c1546bdff3f8216d2eef992c363692b13df Mon Sep 17 00:00:00 2001 From: Mehrdad Afshari Date: Fri, 14 Feb 2020 21:25:47 -0800 Subject: [PATCH] Do not validate details when status code is OK --- .../grpcio_tests/tests/unit/_metadata_code_details_test.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/python/grpcio_tests/tests/unit/_metadata_code_details_test.py b/src/python/grpcio_tests/tests/unit/_metadata_code_details_test.py index 4f995bb30b9..5b06eb2bfe8 100644 --- a/src/python/grpcio_tests/tests/unit/_metadata_code_details_test.py +++ b/src/python/grpcio_tests/tests/unit/_metadata_code_details_test.py @@ -250,7 +250,6 @@ class MetadataCodeDetailsTest(unittest.TestCase): test_common.metadata_transmitted(_SERVER_TRAILING_METADATA, call.trailing_metadata())) self.assertIs(grpc.StatusCode.OK, call.code()) - self.assertEqual(_DETAILS, call.details()) def testSuccessfulUnaryStream(self): self._servicer.set_details(_DETAILS) @@ -271,7 +270,6 @@ class MetadataCodeDetailsTest(unittest.TestCase): _SERVER_TRAILING_METADATA, response_iterator_call.trailing_metadata())) self.assertIs(grpc.StatusCode.OK, response_iterator_call.code()) - self.assertEqual(_DETAILS, response_iterator_call.details()) def testSuccessfulStreamUnary(self): self._servicer.set_details(_DETAILS) @@ -290,7 +288,6 @@ class MetadataCodeDetailsTest(unittest.TestCase): test_common.metadata_transmitted(_SERVER_TRAILING_METADATA, call.trailing_metadata())) self.assertIs(grpc.StatusCode.OK, call.code()) - self.assertEqual(_DETAILS, call.details()) def testSuccessfulStreamStream(self): self._servicer.set_details(_DETAILS) @@ -312,7 +309,6 @@ class MetadataCodeDetailsTest(unittest.TestCase): _SERVER_TRAILING_METADATA, response_iterator_call.trailing_metadata())) self.assertIs(grpc.StatusCode.OK, response_iterator_call.code()) - self.assertEqual(_DETAILS, response_iterator_call.details()) def testAbortedUnaryUnary(self): test_cases = zip(_ABORT_CODES, _EXPECTED_CLIENT_CODES,