Commit 35563d8c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Reduce time between two checks if replication was started.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2456 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 08bd7883
......@@ -82,10 +82,11 @@ class ReplicationBenchmark(BenchmarkRunner):
try:
p_time = self.time_it(self.populate, neo)
neo.expectOudatedCells(self._config.partitions)
neo.getStorageProcessList()[-1].start()
neo.expectRunning(neo.getStorageProcessList()[-1])
storage = neo.getStorageProcessList()[-1]
storage.start()
neo.expectRunning(storage, delay=0.1)
print "Source storage populated in %.3f secs" % p_time
r_time = self.time_it(self.replicate, neo)
r_time = self.time_it(self.replicate, neo) + 0.1
except Exception:
content = ''.join(traceback.format_exc())
finally:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment