Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
titolins committed Sep 24, 2024
1 parent 42ec5af commit 25cb0a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions integration/alertmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 25cb0a1

Please sign in to comment.