From 61bb9cbc13ccd00642e5ac3ac757392398eb2eee Mon Sep 17 00:00:00 2001 From: bergquist Date: Fri, 18 Nov 2016 10:53:27 +0100 Subject: [PATCH] test(alerting): fixes broken unit test --- pkg/services/alerting/eval_handler_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/services/alerting/eval_handler_test.go b/pkg/services/alerting/eval_handler_test.go index 03fa0142b10..84905870f52 100644 --- a/pkg/services/alerting/eval_handler_test.go +++ b/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"}, }, })