diff --git a/gateway/handlers/alerthandler_test.go b/gateway/handlers/alerthandler_test.go index 561aca2d5c9c1a984250d7fd271aced0846c2365..0d89e3a9b53ce4d4082e277e910acaf86c791100 100644 --- a/gateway/handlers/alerthandler_test.go +++ b/gateway/handlers/alerthandler_test.go @@ -105,7 +105,7 @@ func TestScaledUpFrom1(t *testing.T) { maxReplicas := uint64(5) scalingFactor := uint64(30) newReplicas := CalculateReplicas("firing", currentReplicas, maxReplicas, scaling.DefaultMinReplicas, scalingFactor) - if newReplicas == currentReplicas { + if newReplicas <= currentReplicas { t.Log("Expected newReplicas > currentReplica") t.Fail() } @@ -116,7 +116,7 @@ func TestScaledUpWithSmallParam(t *testing.T) { maxReplicas := uint64(4) scalingFactor := uint64(1) newReplicas := CalculateReplicas("firing", currentReplicas, maxReplicas, scaling.DefaultMinReplicas, scalingFactor) - if newReplicas == currentReplicas { + if newReplicas <= currentReplicas { t.Log("Expected newReplicas > currentReplica") t.Fail() }