Skip to content
Snippets Groups Projects
Commit 09736be2 authored by Gede Wahyu's avatar Gede Wahyu Committed by Alex Ellis
Browse files

When firing, newReplicas should be greater than currentReplicas


Signed-off-by: default avatarGede Wahyu <tokekbesi@gmail.com>
parent 3bdb194e
No related branches found
No related tags found
No related merge requests found
......@@ -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()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment