There was an error while loading. Please reload this page.
1 parent a57029f commit 8976709Copy full SHA for 8976709
pkg/ruler/base/api_test.go
@@ -559,7 +559,7 @@ func TestRuler_PrometheusAlerts(t *testing.T) {
559
cfg := defaultRulerConfig(t, newMockRuleStore(mockRules))
560
561
r := newTestRuler(t, cfg)
562
- defer r.StopAsync()
+ defer services.StopAndAwaitTerminated(context.Background(), r) //nolint:errcheck
563
564
a := NewAPI(r, r.store, log.NewNopLogger())
565
@@ -593,7 +593,7 @@ func TestRuler_GetRulesLabelFilter(t *testing.T) {
593
594
595
596
597
598
599
0 commit comments