From f28a1aa0d718cc056ab6a4a07a00cc338f3313de Mon Sep 17 00:00:00 2001 From: Sebastian Borza Date: Thu, 8 Mar 2018 22:20:38 -0600 Subject: [PATCH] removing extraneous debug messages --- server/server_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/server/server_test.go b/server/server_test.go index 33207e6c24..679192e128 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -9293,12 +9293,8 @@ func TestServer_AlertHandlers(t *testing.T) { }, }} - // if !reflect.DeepEqual(exp, got) { - // return fmt.Errorf("unexpected pagerduty2 request:\nexp\n%+v\ngot\n%+v\n", exp[0].PostData.Payload, got[0].PostData.Payload) - // } - fmt.Printf("unexpected pagerduty2 request:\nexp\n%+v\ngot\n%+v\n", exp[0].PostData.Payload, got[0].PostData.Payload) - if err := compareListIgnoreOrder([]interface{}{got}, []interface{}{exp}, nil); err != nil { - t.Error(err) + if !reflect.DeepEqual(exp, got) { + return fmt.Errorf("unexpected pagerduty2 request:\nexp\n%+v\ngot\n%+v\n", exp, got) } return nil