fix(influxdb): broken unittests
This commit is contained in:
1 parent
1b8a81d4ba
commit
5a91d45f3f
2 files changed
+2
-5
No files matched your search
@@ -12,10 +12,7 @@ func (qp *InfluxdbQueryParser) Parse(model *simplejson.Json) (*Query, error) {
|
||||
policy := model.Get("policy").MustString("default")
|
||||
rawQuery := model.Get("query").MustString("")
|
||||
|
||||
measurement, err := model.Get("measurement").String()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
measurement := model.Get("measurement").MustString("")
|
||||
|
||||
resultFormat, err := model.Get("resultFormat").String()
|
||||
if err != nil {
|
||||
|
||||
@@ -164,7 +164,7 @@ func TestInfluxdbQueryParser(t *testing.T) {
|
||||
So(err, ShouldBeNil)
|
||||
So(res.RawQuery, ShouldEqual, "RawDummieQuery")
|
||||
So(len(res.GroupBy), ShouldEqual, 2)
|
||||
So(len(res.Selects), ShouldEqual, 2)
|
||||
So(len(res.Selects), ShouldEqual, 1)
|
||||
So(len(res.Tags), ShouldEqual, 0)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user