Browse Source

fix client_proto test, ignore stallMonitor

master
Adam Gibson 9 years ago
parent
commit
4fcf266830
No known key found for this signature in database
GPG Key ID: B3AE09F1E9A3197A
  1. 3
      jmclient/jmclient/client_protocol.py
  2. 1
      jmclient/test/test_client_protocol.py

3
jmclient/jmclient/client_protocol.py

@ -83,7 +83,8 @@ class JMTakerClientProtocol(amp.AMP):
#To avoid creating yet another config variable, we set the timeout
#to 20 * maker_timeout_sec.
reactor.callLater(20*maker_timeout_sec, self.stallMonitor,
if not hasattr(self.taker, 'testflag'): #pragma: no cover
reactor.callLater(20*maker_timeout_sec, self.stallMonitor,
self.taker.schedule_index+1)
d = self.callRemote(commands.JMInit,

1
jmclient/test/test_client_protocol.py

@ -226,6 +226,7 @@ class TrialTestJMClientProto(unittest.TestCase):
for i, p in enumerate(params):
takers[i].set_fail_init(p[0])
takers[i].set_fail_utxos(p[1])
takers[i].testflag = True
if i != 0:
clientfactories.append(JMTakerClientProtocolFactory(takers[i]))
clientconn = reactor.connectTCP("localhost", 27184, clientfactories[i])

Loading…
Cancel
Save