Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 def clientConnected(self, protocol):
     ReconnectingClientService.clientConnected(self, protocol)
     while self.wait_on_protocol_deferreds:
         deferred = self.wait_on_protocol_deferreds.pop()
         deferred.callback(protocol)
Ejemplo n.º 4
0
 def clientConnected(self, protocol):
     ReconnectingClientService.clientConnected(self, protocol)
     for deferred in self.wait_on_protocol_deferreds:
         deferred.callback(protocol)
Ejemplo n.º 5
0
 def clientConnected(self, protocol):
     ReconnectingClientService.clientConnected(self, protocol)
     for deferred in self.wait_on_protocol_deferreds:
         deferred.callback(protocol)