diff --git a/component/mimir/rules/events_test.go b/component/mimir/rules/events_test.go index 72c73db4c158..062a850e3117 100644 --- a/component/mimir/rules/events_test.go +++ b/component/mimir/rules/events_test.go @@ -52,6 +52,9 @@ func (m *fakeMimirClient) DeleteRuleGroup(ctx context.Context, namespace, group func (m *fakeMimirClient) deleteLocked(namespace, group string) { for ns, v := range m.rules { + if namespace != "" && namespace != ns { + continue + } for i, g := range v { if g.Name == group { m.rules[ns] = append(m.rules[ns][:i], m.rules[ns][i+1:]...)