Skip to content

Commit

Permalink
test: fix failure message log values in notifier
Browse files Browse the repository at this point in the history
Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
  • Loading branch information
tjhop committed Oct 20, 2023
1 parent b3b0a32 commit 5726c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notify/notify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ func TestTimeMuteStage(t *testing.T) {
}
suppressed := int(prom_testutil.ToFloat64(metrics.numAlertsSuppressedTotal))
if (len(cases) - nonMuteCount) != suppressed {
t.Fatalf("Expected %d alerts counted in suppressed metric but got %d", len(outAlerts), suppressed)
t.Fatalf("Expected %d alerts counted in suppressed metric but got %d", (len(cases) - nonMuteCount), suppressed)
}
}

Expand Down Expand Up @@ -973,7 +973,7 @@ func TestTimeActiveStage(t *testing.T) {
}
suppressed := int(prom_testutil.ToFloat64(metrics.numAlertsSuppressedTotal))
if (len(cases) - nonMuteCount) != suppressed {
t.Fatalf("Expected %d alerts counted in suppressed metric but got %d", len(outAlerts), suppressed)
t.Fatalf("Expected %d alerts counted in suppressed metric but got %d", (len(cases) - nonMuteCount), suppressed)
}
}

Expand Down

0 comments on commit 5726c0c

Please sign in to comment.