for b in lenprefix:
conn.send(bytes([b]))
- time.sleep(0.5)
+ time.sleep(0.1)
conn.send(wire)
self._currentSerial = serial
rpzServer.moveToSerial(serial)
attempts = 0
+ incr = .1
while attempts < timeout:
currentSerial = rpzServer.getCurrentSerial()
if currentSerial > serial:
self.checkDump(serial)
return
- attempts = attempts + 1
- time.sleep(1)
+ attempts = attempts + incr
+ time.sleep(incr)
raise AssertionError("Waited %d seconds for the serial to be updated to %d but the serial is still %d" % (timeout, serial, currentSerial))