feat(mqe): restricts the executor to max 4 concurrent outgoing requests
This commit is contained in:
@@ -31,13 +31,13 @@ func TestMQEResponseParser(t *testing.T) {
|
||||
}
|
||||
res, err := parser.Parse(response, queryRef)
|
||||
So(err, ShouldBeNil)
|
||||
So(len(res.Series), ShouldEqual, 2)
|
||||
So(len(res.Series[0].Points), ShouldEqual, 14)
|
||||
So(res.Series[0].Name, ShouldEqual, "demoapp staples-lab-1 os.disk.sda3.weighted_io_time")
|
||||
So(len(res), ShouldEqual, 2)
|
||||
So(len(res[0].Points), ShouldEqual, 14)
|
||||
So(res[0].Name, ShouldEqual, "demoapp staples-lab-1 os.disk.sda3.weighted_io_time")
|
||||
startTime := 1479287280000
|
||||
for i := 0; i < 11; i++ {
|
||||
So(res.Series[0].Points[i][0].Float64, ShouldEqual, i+1)
|
||||
So(res.Series[0].Points[i][1].Float64, ShouldEqual, startTime+(i*30000))
|
||||
So(res[0].Points[i][0].Float64, ShouldEqual, i+1)
|
||||
So(res[0].Points[i][1].Float64, ShouldEqual, startTime+(i*30000))
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user