move the sleep outside the loop in the test

pull/319/head
John Shahid 2014-03-07 16:45:50 -05:00
parent d029273f89
commit 73648b5a6f
1 changed files with 1 additions and 1 deletions

View File

@ -777,10 +777,10 @@ func (self *ServerSuite) TestFailureAndReplicationReplays(c *C) {
}
self.serverProcesses[1].Start()
time.Sleep(2 * time.Second)
for i := 0; i < 3; i++ {
// wait for the server to startup and the WAL to be synced
time.Sleep(2 * time.Second)
collection := self.serverProcesses[1].Query("full_rep", "select sum(val) from test_failure_replays;", true, c)
series := collection.GetSeries("test_failure_replays", c)
if series.GetValueForPointAndColumn(0, "sum", c).(float64) == 3 {