From b606d9b7da4a5ad4f5c0a55c6f31415b5bf90f55 Mon Sep 17 00:00:00 2001 From: bergquist Date: Mon, 2 May 2016 16:27:02 +0200 Subject: [PATCH] test(alerting): fixes broken test --- pkg/services/sqlstore/alert_state_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/services/sqlstore/alert_state_test.go b/pkg/services/sqlstore/alert_state_test.go index 9fc8b2f466a..492de8d77aa 100644 --- a/pkg/services/sqlstore/alert_state_test.go +++ b/pkg/services/sqlstore/alert_state_test.go @@ -54,7 +54,7 @@ func TestAlertingStateAccess(t *testing.T) { err = SetNewAlertState(&m.UpdateAlertStateCommand{ AlertId: 1, - NewState: "ALERT", + NewState: "CRITICAL", Info: "Shit just hit the fan", }) @@ -62,7 +62,7 @@ func TestAlertingStateAccess(t *testing.T) { query := &m.GetAlertByIdQuery{Id: 1} err := GetAlertById(query) So(err, ShouldBeNil) - So(query.Result.State, ShouldEqual, "ALERT") + So(query.Result.State, ShouldEqual, "CRITICAL") }) Convey("Changes state to ok", func() {