diff --git a/integration/alertmanager_test.go b/integration/alertmanager_test.go index f175c16d1cf..16b259ea7b2 100644 --- a/integration/alertmanager_test.go +++ b/integration/alertmanager_test.go @@ -927,12 +927,13 @@ func TestAlertmanagerShardingScaling(t *testing.T) { e2e.Equals(float64(numUsers*expectedReplication)), "cortex_alertmanager_config_last_reload_successful")) + // we stopped exporting zero silences + // https://github.com/grafana/mimir/pull/9359 if expectedSilences > 0 { - expectedSilences *= expectedReplication + require.NoError(t, ams.WaitSumMetrics( + e2e.Equals(float64(expectedSilences*expectedReplication)), + "cortex_alertmanager_silences")) } - require.NoError(t, ams.WaitSumMetrics( - e2e.Equals(float64(expectedSilences)), - "cortex_alertmanager_silences")) } // Start up the first instance and use it to create some silences.