fix(alerting): add a proper compare func for location in mute timings (#82153)

This commit is contained in:
Jean-Philippe Quéméner
2024-02-08 13:36:09 +01:00
committed by GitHub
parent 74d7cd2cad
commit 4dc1ebbb66
2 changed files with 11 additions and 1 deletions
@@ -2,6 +2,7 @@ package api
import (
"testing"
"time"
amConfig "github.com/prometheus/alertmanager/config"
"github.com/prometheus/alertmanager/pkg/labels"
@@ -563,6 +564,7 @@ func defaultInterval(t *testing.T) []timeinterval.TimeInterval {
t.Helper()
return []timeinterval.TimeInterval{
{
Location: &timeinterval.Location{Location: time.Local},
Years: []timeinterval.YearRange{
{
InclusiveRange: timeinterval.InclusiveRange{