Use LONG_TIMEOUT for calls that do not time out

pull/9080/head
Nathaniel Manista 8 years ago
parent 30492b90a3
commit 91764921bc
  1. 2
      src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py
  2. 2
      src/python/grpcio_tests/tests/unit/beta/_utilities_test.py

@ -86,7 +86,7 @@ class ChannelReadyFutureTest(unittest.TestCase):
ready_future = grpc.channel_ready_future(channel)
ready_future.add_done_callback(callback.accept_value)
self.assertIsNone(ready_future.result(test_constants.SHORT_TIMEOUT))
self.assertIsNone(ready_future.result(test_constants.LONG_TIMEOUT))
value_passed_to_callback = callback.block_until_called()
self.assertIs(ready_future, value_passed_to_callback)
self.assertFalse(ready_future.cancelled())

@ -88,7 +88,7 @@ class ChannelConnectivityTest(unittest.TestCase):
ready_future = utilities.channel_ready_future(channel)
ready_future.add_done_callback(callback.accept_value)
self.assertIsNone(
ready_future.result(test_constants.SHORT_TIMEOUT))
ready_future.result(test_constants.LONG_TIMEOUT))
value_passed_to_callback = callback.block_until_called()
self.assertIs(ready_future, value_passed_to_callback)
self.assertFalse(ready_future.cancelled())

Loading…
Cancel
Save