From 29a7c4128e7372ebf9145052f7dcad417d8aaee3 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Tue, 19 Jul 2022 08:46:24 +0200 Subject: [PATCH] fix typo and increase test timeout Signed-off-by: Jorge Turrado --- tests/run-all.sh | 4 ++-- tests/scalers_go/azure_pipelines/azure_pipelines_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/run-all.sh b/tests/run-all.sh index c0c030d2c63..8aa5115c857 100755 --- a/tests/run-all.sh +++ b/tests/run-all.sh @@ -35,7 +35,7 @@ function run_tests { # TODO - Remove condition after all tests have been migrated to Go. if [[ $test_case == *_test.go ]] then - go test -v -tags e2e $test_case > "${test_case}.log" 2>&1 & + go test -v -tags e2e -timeout 15m $test_case > "${test_case}.log" 2>&1 & else ./node_modules/.bin/ava $test_case > "${test_case}.log" 2>&1 & fi @@ -75,7 +75,7 @@ function run_tests { # TODO - Remove condition after all tests have been migrated to Go. if [[ $test_case == *_test.go ]] then - go test -v -tags e2e $test_case > "${test_case}.retry.log" 2>&1 & + go test -v -tags e2e -timeout 15m $test_case > "${test_case}.retry.log" 2>&1 & else ./node_modules/.bin/ava $test_case > "${test_case}.retry.log" 2>&1 & fi diff --git a/tests/scalers_go/azure_pipelines/azure_pipelines_test.go b/tests/scalers_go/azure_pipelines/azure_pipelines_test.go index 0bedea67ae0..35b9c5c28e1 100644 --- a/tests/scalers_go/azure_pipelines/azure_pipelines_test.go +++ b/tests/scalers_go/azure_pipelines/azure_pipelines_test.go @@ -98,7 +98,7 @@ spec: image: ghcr.io/kedacore/tests-azure-pipelines-agent:b3a02cc env: - name: AZP_URL - value: {{.Url}} + value: {{.URL}} - name: AZP_TOKEN valueFrom: secretKeyRef: @@ -134,7 +134,7 @@ spec: organizationURLFromEnv: "AZP_URL" personalAccessTokenFromEnv: "AZP_TOKEN" activationTargetPipelinesQueueLength: "1" - poolID: "{{.PoolId}}" + poolID: "{{.PoolID}}" ` poolNamescaledObjectTemplate = ` apiVersion: keda.sh/v1alpha1