Skip to content

Commit

Permalink
make the test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid committed Dec 2, 2013
1 parent ec0a170 commit 9781cc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/integration/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,15 @@ func (self *IntegrationSuite) TestCountWithGroupBy(c *C) {

// test for issue #30
func (self *IntegrationSuite) TestHttpPostWithTime(c *C) {
err := self.server.WriteData(`
now := time.Now().Add(-10 * 24 * time.Hour)
err := self.server.WriteData(fmt.Sprintf(`
[
{
"name": "test_post_with_time",
"columns": ["time", "val1", "val2"],
"points":[[1384118307, "v1", 2]]
"points":[[%d, "v1", 2]]
}
]`, "time_precision=s")
]`, now.Unix()), "time_precision=s")
c.Assert(err, IsNil)
bs, err := self.server.RunQuery("select * from test_post_with_time where time > now() - 20d")
c.Assert(err, IsNil)
Expand Down

0 comments on commit 9781cc8

Please sign in to comment.