diff --git a/inhibit_test.go b/inhibit_test.go index f212471d..f2acebfc 100644 --- a/inhibit_test.go +++ b/inhibit_test.go @@ -124,7 +124,7 @@ func TestInhibitRuleHasEqual(t *testing.T) { } if have := r.hasEqual(c.input); have != c.result { - t.Errorf("Unexpected result %q, expected %q", have, c.result) + t.Errorf("Unexpected result %t, expected %t", have, c.result) } if !reflect.DeepEqual(r.scache, c.initial) { t.Errorf("Cache state unexpectedly changed") diff --git a/notify/impl.go b/notify/impl.go index a4eadfe4..59a1f04e 100644 --- a/notify/impl.go +++ b/notify/impl.go @@ -563,7 +563,7 @@ func (n *Hipchat) Notify(ctx context.Context, as ...*types.Alert) error { data = n.tmpl.Data(receiver(ctx), groupLabels(ctx), as...) tmplText = tmplText(n.tmpl, data, &err) tmplHTML = tmplHTML(n.tmpl, data, &err) - url = fmt.Sprintf("%sv2/room/%s/notification?auth_token=%s", n.conf.APIURL, n.conf.RoomID, n.conf.AuthToken) + url = fmt.Sprintf("%sv2/room/%d/notification?auth_token=%s", n.conf.APIURL, n.conf.RoomID, n.conf.AuthToken) ) if n.conf.MessageFormat == "html" {