Skip to content

Commit

Permalink
introduce some sleeps to make sure the data is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid committed Mar 31, 2014
1 parent e4335cf commit 67545b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/integration/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,7 @@ func (self *IntegrationSuite) TestLargeDeletes(c *C) {
}
]`, string(pointsString)))
c.Assert(err, IsNil)
time.Sleep(5 * time.Second)
bs, err := self.server.RunQuery("select count(val1) from test_large_deletes", "m")
c.Assert(err, IsNil)
data := []*SerializedSeries{}
Expand All @@ -1431,6 +1432,8 @@ func (self *IntegrationSuite) TestLargeDeletes(c *C) {
_, err = self.server.RunQuery(query, "m")
c.Assert(err, IsNil)

time.Sleep(5 * time.Second)

// this shouldn't return any data
bs, err = self.server.RunQuery("select count(val1) from test_large_deletes", "m")
c.Assert(err, IsNil)
Expand Down

0 comments on commit 67545b6

Please sign in to comment.