mirror of
https://github.com/openfaas/faas.git
synced 2025-06-14 19:26:48 +00:00
Fix TestInitialScale expectation
Signed-off-by: Gede Wahyu <tokekbesi@gmail.com>
This commit is contained in:
parent
058d1e481a
commit
81db6514f7
@ -54,8 +54,8 @@ func TestInitialScale(t *testing.T) {
|
||||
minReplicas := uint64(1)
|
||||
scalingFactor := uint64(20)
|
||||
newReplicas := CalculateReplicas("firing", scaling.DefaultMinReplicas, scaling.DefaultMaxReplicas, minReplicas, scalingFactor)
|
||||
if newReplicas != 4 {
|
||||
t.Log("Expected the increment to equal 4")
|
||||
if newReplicas != 5 {
|
||||
t.Log("Expected the increment to equal 5")
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
@ -104,7 +104,7 @@ func TestScaledUpFrom1(t *testing.T) {
|
||||
currentReplicas := uint64(1)
|
||||
maxReplicas := uint64(5)
|
||||
scalingFactor := uint64(30)
|
||||
newReplicas := CalculateReplicas("firing", currentReplicas, maxReplicas, DefaultMinReplicas, scalingFactor)
|
||||
newReplicas := CalculateReplicas("firing", currentReplicas, maxReplicas, scaling.DefaultMinReplicas, scalingFactor)
|
||||
if newReplicas == currentReplicas {
|
||||
t.Log("Expected newReplicas > currentReplica")
|
||||
t.Fail()
|
||||
|
Loading…
x
Reference in New Issue
Block a user