diff --git a/alerting/provider/googlechat/googlechat_test.go b/alerting/provider/googlechat/googlechat_test.go index 673ca57c..3fd7956e 100644 --- a/alerting/provider/googlechat/googlechat_test.go +++ b/alerting/provider/googlechat/googlechat_test.go @@ -177,7 +177,7 @@ func TestAlertProvider_buildRequestBody(t *testing.T) { b, _ := json.Marshal(body) e, _ := json.Marshal(scenario.ExpectedBody) if body != scenario.ExpectedBody { - t.Errorf("expected %s, got %s", e, b) + t.Errorf("expected:\n%s\ngot:\n%s", e, b) } out := make(map[string]interface{}) if err := json.Unmarshal([]byte(body), &out); err != nil { diff --git a/alerting/provider/messagebird/messagebird_test.go b/alerting/provider/messagebird/messagebird_test.go index 584f5e3f..dc1170b5 100644 --- a/alerting/provider/messagebird/messagebird_test.go +++ b/alerting/provider/messagebird/messagebird_test.go @@ -142,7 +142,7 @@ func TestAlertProvider_buildRequestBody(t *testing.T) { scenario.Resolved, ) if string(body) != scenario.ExpectedBody { - t.Errorf("expected %s, got %s", scenario.ExpectedBody, body) + t.Errorf("expected:\n%s\ngot:\n%s", scenario.ExpectedBody, body) } out := make(map[string]interface{}) if err := json.Unmarshal([]byte(body), &out); err != nil { diff --git a/alerting/provider/ntfy/ntfy_test.go b/alerting/provider/ntfy/ntfy_test.go index c806dee6..1386647c 100644 --- a/alerting/provider/ntfy/ntfy_test.go +++ b/alerting/provider/ntfy/ntfy_test.go @@ -93,7 +93,7 @@ func TestAlertProvider_buildRequestBody(t *testing.T) { scenario.Resolved, ) if string(body) != scenario.ExpectedBody { - t.Errorf("expected %s, got %s", scenario.ExpectedBody, body) + t.Errorf("expected:\n%s\ngot:\n%s", scenario.ExpectedBody, body) } out := make(map[string]interface{}) if err := json.Unmarshal(body, &out); err != nil {