def test_connect_with_max_retries(self):
"""
If C{max_retries} is passed to L{RemoteObjectConnector.connect},
then it will give up trying to connect after that amount of times.
"""
self.log_helper.ignore_errors("Error while connecting to test")
deferred = self.connector.connect(max_retries=2)
self.assertNoResult(deferred)
return
self.failureResultOf(deferred).trap(ConnectError)
评论列表
文章目录