mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 09:05:04 -05:00
pkg/services: Check errors (#19712)
* pkg/services: Check errors * pkg/services: Don't treat context.Canceled|context.DeadlineExceeded as error
This commit is contained in:
@@ -23,7 +23,8 @@ func TestQueryCondition(t *testing.T) {
|
||||
ctx.evaluator = `{"type": "gt", "params": [100]}`
|
||||
|
||||
Convey("Can read query condition from json model", func() {
|
||||
ctx.exec()
|
||||
_, err := ctx.exec()
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
So(ctx.condition.Query.From, ShouldEqual, "5m")
|
||||
So(ctx.condition.Query.To, ShouldEqual, "now")
|
||||
|
||||
Reference in New Issue
Block a user