Skip to content

Commit

Permalink
Condense test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
toddboom committed Apr 21, 2014
1 parent 276837a commit 182dba0
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions src/integration/multiple_servers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -832,25 +832,15 @@ func (self *ServerSuite) TestContinuousQuerySequenceNumberAssignmentWithInterpol
series := collection.GetSeries("points", c)
c.Assert(series.Points, HasLen, 12)

collection = self.serverProcesses[0].Query("test_cq", "select * from points.count.a;", false, c)
series = collection.GetSeries("points.count.a", c)
c.Assert(series.Points, HasLen, 1)
c.Assert(series.Points[0][1], Equals, float64(1))

collection = self.serverProcesses[0].Query("test_cq", "select * from points.count.aa;", false, c)
series = collection.GetSeries("points.count.aa", c)
c.Assert(series.Points, HasLen, 1)
c.Assert(series.Points[0][1], Equals, float64(1))

collection = self.serverProcesses[0].Query("test_cq", "select * from points.count.b;", false, c)
series = collection.GetSeries("points.count.b", c)
c.Assert(series.Points, HasLen, 1)
c.Assert(series.Points[0][1], Equals, float64(1))
collection = self.serverProcesses[0].Query("test_cq", "select * from /points.count.*/;", false, c)
c.Assert(collection.Members, HasLen, 4)

collection = self.serverProcesses[0].Query("test_cq", "select * from points.count.bb;", false, c)
series = collection.GetSeries("points.count.bb", c)
c.Assert(series.Points, HasLen, 1)
c.Assert(series.Points[0][1], Equals, float64(1))
subseries := []string{"a", "aa", "b", "bb"}
for i := range subseries {
series = collection.GetSeries("points.count."+subseries[i], c)
c.Assert(series.Points, HasLen, 1)
c.Assert(series.Points[0][1], Equals, float64(1))
}
}

func (self *ServerSuite) TestGetServers(c *C) {
Expand Down

0 comments on commit 182dba0

Please sign in to comment.