def test_clientConnected(self): reset = self.patch_reconnector('resetDelay') s = ReconnectingClientService(object(), object()) p = object() s.clientConnected(p) self.assertIdentical(s._protocol, p) reset.assertCalledOnce()
def test_clientConnected(self): reset = self.patch_reconnector('resetDelay') s = ReconnectingClientService(object(), object()) p = object() s.clientConnected(p) self.assertIdentical(s._protocol, p) reset.assertCalledOnce()
def clientConnected(self, protocol): ReconnectingClientService.clientConnected(self, protocol) while self.wait_on_protocol_deferreds: deferred = self.wait_on_protocol_deferreds.pop() deferred.callback(protocol)
def clientConnected(self, protocol): ReconnectingClientService.clientConnected(self, protocol) for deferred in self.wait_on_protocol_deferreds: deferred.callback(protocol)
def clientConnected(self, protocol): ReconnectingClientService.clientConnected(self, protocol) for deferred in self.wait_on_protocol_deferreds: deferred.callback(protocol)