浏览代码

test(alerting): fixes broken unit test

bergquist 9 年之前
父节点
当前提交
61bb9cbc13
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pkg/services/alerting/eval_handler_test.go

+ 2 - 2
pkg/services/alerting/eval_handler_test.go

@@ -36,8 +36,8 @@ func TestAlertingExecutor(t *testing.T) {
 		Convey("Show return false with not passing asdf", func() {
 			context := NewEvalContext(context.TODO(), &Rule{
 				Conditions: []Condition{
-					&conditionStub{firing: true, matches: []*EvalMatch{&EvalMatch{}, &EvalMatch{}}},
-					&conditionStub{firing: false},
+					&conditionStub{firing: true, operator: "and", matches: []*EvalMatch{&EvalMatch{}, &EvalMatch{}}},
+					&conditionStub{firing: false, operator: "and"},
 				},
 			})