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

Test scaled up from 1


Signed-off-by: default avatarGede Wahyu <tokekbesi@gmail.com>
parent ea40055c
No related branches found
No related tags found
No related merge requests found
......@@ -99,3 +99,14 @@ func TestBackingOff(t *testing.T) {
t.Fail()
}
}
func TestScaledUpFrom1(t *testing.T) {
currentReplicas := uint64(1)
maxReplicas := uint64(5)
scalingFactor := uint64(30)
newReplicas := CalculateReplicas("firing", currentReplicas, maxReplicas, DefaultMinReplicas, scalingFactor)
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