Skip to content
Snippets Groups Projects
Commit 91764921 authored by Nathaniel Manista's avatar Nathaniel Manista
Browse files

Use LONG_TIMEOUT for calls that do not time out

parent 30492b90
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ class ChannelReadyFutureTest(unittest.TestCase): ...@@ -86,7 +86,7 @@ class ChannelReadyFutureTest(unittest.TestCase):
ready_future = grpc.channel_ready_future(channel) ready_future = grpc.channel_ready_future(channel)
ready_future.add_done_callback(callback.accept_value) 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() value_passed_to_callback = callback.block_until_called()
self.assertIs(ready_future, value_passed_to_callback) self.assertIs(ready_future, value_passed_to_callback)
self.assertFalse(ready_future.cancelled()) self.assertFalse(ready_future.cancelled())
......
...@@ -88,7 +88,7 @@ class ChannelConnectivityTest(unittest.TestCase): ...@@ -88,7 +88,7 @@ class ChannelConnectivityTest(unittest.TestCase):
ready_future = utilities.channel_ready_future(channel) ready_future = utilities.channel_ready_future(channel)
ready_future.add_done_callback(callback.accept_value) ready_future.add_done_callback(callback.accept_value)
self.assertIsNone( self.assertIsNone(
ready_future.result(test_constants.SHORT_TIMEOUT)) ready_future.result(test_constants.LONG_TIMEOUT))
value_passed_to_callback = callback.block_until_called() value_passed_to_callback = callback.block_until_called()
self.assertIs(ready_future, value_passed_to_callback) self.assertIs(ready_future, value_passed_to_callback)
self.assertFalse(ready_future.cancelled()) self.assertFalse(ready_future.cancelled())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment