Skip to content

Commit

Permalink
use skipmissing instead of checking for 0
Browse files Browse the repository at this point in the history
  • Loading branch information
titolins committed Sep 24, 2024
1 parent 2969965 commit 9d68f4f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions integration/alertmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,13 +927,10 @@ 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 {
require.NoError(t, ams.WaitSumMetrics(
e2e.Equals(float64(expectedSilences*expectedReplication)),
"cortex_alertmanager_silences"))
}
require.NoError(t, ams.WaitSumMetrics(
e2e.Equals(float64(expectedSilences*expectedReplication)),
e2e.SkipMissingMetrics,

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (0, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (0, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (1, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (1, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (2, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (2, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (3, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (3, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (4, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (4, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (5, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics

Check failure on line 932 in integration/alertmanager_test.go

View workflow job for this annotation

GitHub Actions / integration (5, 6)

cannot use e2e.SkipMissingMetrics (value of type func(opts *e2e.MetricsOptions)) as string value in argument to ams.WaitSumMetrics
"cortex_alertmanager_silences"))
}

// Start up the first instance and use it to create some silences.
Expand Down

0 comments on commit 9d68f4f

Please sign in to comment.