From 14618d0e354bed415143c8e368ff9de8166387e1 Mon Sep 17 00:00:00 2001 From: cfal Date: Fri, 11 Aug 2023 05:24:40 +0800 Subject: [PATCH] integration-tests/common/common.go: fix reading custom test duration (#314) --- integration-tests/common/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tests/common/common.go b/integration-tests/common/common.go index 4f66255cd..835dd0ce2 100644 --- a/integration-tests/common/common.go +++ b/integration-tests/common/common.go @@ -90,7 +90,7 @@ func New() *Common { // Setting optional parameters testDurationValue := getEnv("TEST_DURATION") if testDurationValue != "" { - duration, err := time.ParseDuration(ttlValue) + duration, err := time.ParseDuration(testDurationValue) if err != nil { panic(fmt.Sprintf("Please define a proper duration for the test: %v", err)) }