mirror of
https://github.com/openfaas/faas.git
synced 2025-06-25 16:23:26 +00:00
@ -99,3 +99,14 @@ func TestBackingOff(t *testing.T) {
|
|||||||
t.Fail()
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user