pull/37761/head
Xuan Wang 2 months ago
parent 09a294ec7c
commit d2ecd8ce22
  1. 4
      src/python/grpcio_tests/tests/_result.py
  2. 1
      src/python/grpcio_tests/tests/unit/_metadata_flags_test.py

@ -326,7 +326,7 @@ class TerminalResult(CoverageResult):
duration = end_time - self.start_time duration = end_time - self.start_time
self.out.write( self.out.write(
_Colors.FAIL _Colors.FAIL
+ " [{}]ERROR {}[Duration: {}s]\n".format( + " [{}]ERROR {}[Duration: {}]\n".format(
datetime.datetime.now(), test.id(), duration datetime.datetime.now(), test.id(), duration
) )
+ _Colors.END + _Colors.END
@ -354,7 +354,7 @@ class TerminalResult(CoverageResult):
duration = end_time - self.start_time duration = end_time - self.start_time
self.out.write( self.out.write(
_Colors.OK _Colors.OK
+ " [{}]SUCCESS {}[Duration: {}s]\n".format( + " [{}]SUCCESS {}[Duration: {}]\n".format(
end_time, test.id(), duration end_time, test.id(), duration
) )
+ _Colors.END + _Colors.END

@ -229,7 +229,6 @@ class MetadataFlagsTest(unittest.TestCase):
self.check_connection_does_failfast( self.check_connection_does_failfast(
perform_call, channel, wait_for_ready=False perform_call, channel, wait_for_ready=False
) )
self.assertEqual(1, 2)
def test_call_wait_for_ready_enabled(self): def test_call_wait_for_ready_enabled(self):
# To test the wait mechanism, Python thread is required to make # To test the wait mechanism, Python thread is required to make

Loading…
Cancel
Save