Skip to content

Commit 3fc095e

Browse files
committed
make use of activation target
Signed-off-by: Fira Curie <[email protected]>
1 parent a2ccae7 commit 3fc095e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/scalers/gitlab_runner/gitlab_runner_test.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func getTemplateData(projectID string) (templateData, []Template) {
196196
GitlabAPIURL: "https://gitlab.com",
197197
ProjectID: projectID,
198198
TargetPipelineQueueLength: "1",
199-
ActivationTargetPipelineQueueLength: "1",
199+
ActivationTargetPipelineQueueLength: "2",
200200
}, []Template{
201201
{Name: "secretTemplate", Config: secretTemplate},
202202
{Name: "authTemplate", Config: triggerAuthTemplate},
@@ -213,9 +213,11 @@ func testActivation(t *testing.T, kc *kubernetes.Clientset) {
213213
func testScaleOut(t *testing.T, kc *kubernetes.Clientset, projectID string) {
214214
t.Log("--- testing scale out ---")
215215
queueRun(t, projectID)
216+
queueRun(t, projectID)
217+
queueRun(t, projectID)
216218

217-
assert.True(t, WaitForDeploymentReplicaReadyCount(t, kc, deploymentName, testNamespace, maxReplicaCount, 60, 1),
218-
"replica count should be 1 after 1 minute")
219+
assert.True(t, WaitForDeploymentReplicaReadyCount(t, kc, deploymentName, testNamespace, maxReplicaCount, 60, 2),
220+
"replica count should be 2 after 1 minute")
219221
}
220222

221223
func testScaleIn(t *testing.T, kc *kubernetes.Clientset, projectID string) {

0 commit comments

Comments
 (0)