Skip to content

Commit

Permalink
Reduce kafka test duration
Browse files Browse the repository at this point in the history
Signed-off-by: JosephABC <[email protected]>
  • Loading branch information
josephangbc committed Dec 7, 2022
1 parent a8ae54e commit 23647b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/scalers/kafka/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,19 +196,20 @@ metadata:
labels:
app: {{.DeploymentName}}
spec:
pollingInterval: 15
scaleTargetRef:
name: {{.DeploymentName}}
advanced:
horizontalPodAutoscalerConfig:
behavior:
scaleUp:
stabilizationWindowSeconds: 60
stabilizationWindowSeconds: 30
policies:
- type: Percent
value: 100
periodSeconds: 15
scaleDown:
stabilizationWindowSeconds: 60
stabilizationWindowSeconds: 30
policies:
- type: Percent
value: 100
Expand Down Expand Up @@ -505,7 +506,7 @@ func testPersistentLag(t *testing.T, kc *kubernetes.Clientset, data templateData
"replica count should be %d after 2 minute", 1)

// Shouldn't scale pods
AssertReplicaCountNotChangeDuringTimePeriod(t, kc, deploymentName, testNamespace, 1, 180)
AssertReplicaCountNotChangeDuringTimePeriod(t, kc, deploymentName, testNamespace, 1, 30)

KubectlDeleteWithTemplate(t, data, "singleDeploymentTemplate", singleDeploymentTemplate)
KubectlDeleteWithTemplate(t, data, "persistentLagScaledObjectTemplate", persistentLagScaledObjectTemplate)
Expand Down

0 comments on commit 23647b2

Please sign in to comment.