We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135b01b commit cd9f4caCopy full SHA for cd9f4ca
pkg/ruler/ruler_test.go
@@ -6,6 +6,7 @@ import (
6
"net/http/httptest"
7
"sync"
8
"testing"
9
+ "time"
10
11
"github.com/prometheus/prometheus/pkg/labels"
12
@@ -48,6 +49,10 @@ func TestNotifierSendsUserIDHeader(t *testing.T) {
48
49
t.Fatal(err)
50
}
51
defer n.Stop()
52
+ // Loop until notifier discovery syncs up
53
+ for len(n.Alertmanagers()) == 0 {
54
+ time.Sleep(10 * time.Millisecond)
55
+ }
56
57
n.Send(¬ifier.Alert{
58
Labels: labels.Labels{labels.Label{Name: "alertname", Value: "testalert"}},
0 commit comments