From df93c7ca2b74c25848ef78cc1d05f3b1e1225f23 Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Fri, 22 Jan 2021 14:29:41 -0800 Subject: [PATCH] fix function --- test/integration/main_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/integration/main_test.go b/test/integration/main_test.go index cb1b7bb420..e15943c2c6 100644 --- a/test/integration/main_test.go +++ b/test/integration/main_test.go @@ -127,15 +127,12 @@ func PodmanDriver() bool { // ContainerRuntime returns the name of a specific container runtime if it was specified func ContainerRuntime() string { flag := "--container-runtime=" - if !strings.Contains(*startArgs, flag) { - return "" - } for _, s := range StartArgs() { if strings.HasPrefix(s, flag) { return strings.TrimPrefix(s, flag) } } - return "" + return "docker" } // KicDriver returns whether or not this test is using the docker or podman driver