From 2e5b9e5194aed6117925e15353f4b26304d5f27b Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Tue, 8 Dec 2015 11:53:28 +0100 Subject: [PATCH] Improve acceptance test logging --- test/acceptance.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/acceptance.go b/test/acceptance.go index 23afbf50..b428dd44 100644 --- a/test/acceptance.go +++ b/test/acceptance.go @@ -290,7 +290,7 @@ func (am *Alertmanager) Push(at float64, alerts ...*TestAlert) { am.t.Do(at, func() { if err := alertAPI.Push(context.Background(), nas...); err != nil { - am.t.Fatal(err) + am.t.Errorf("Error pushing %v: %s", nas, err) } }) } @@ -302,7 +302,7 @@ func (am *Alertmanager) SetSilence(at float64, sil *TestSilence) { am.t.Do(at, func() { sid, err := silences.Set(context.Background(), sil.nativeSilence(am.opts)) if err != nil { - am.t.Fatal(err) + am.t.Errorf("Error setting silence %v: %s", sil, err) return } sil.ID = sid @@ -315,7 +315,7 @@ func (am *Alertmanager) DelSilence(at float64, sil *TestSilence) { am.t.Do(at, func() { if err := silences.Del(context.Background(), sil.ID); err != nil { - am.t.Fatal(err) + am.t.Errorf("Error deleting silence %v: %s", sil, err) } }) }