From 83110ba071c9dc696d98c263b6dbf16d9e20e8a0 Mon Sep 17 00:00:00 2001 From: Matthew Doherty Date: Fri, 8 Jul 2022 14:29:39 +0200 Subject: [PATCH] Fix for port-forward being closed during tests https://github.com/kubernetes/kubectl/issues/1169#issuecomment-1165140134 --- test/integration/framework/postgresql/dsiclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/framework/postgresql/dsiclient.go b/test/integration/framework/postgresql/dsiclient.go index c38e6e98..05dbff83 100644 --- a/test/integration/framework/postgresql/dsiclient.go +++ b/test/integration/framework/postgresql/dsiclient.go @@ -199,5 +199,5 @@ func dbURL(credentials map[string]string, port string) string { user := credentials[DbAdminUsernameKey] password := credentials[DbAdminPasswordKey] database := credentials[DatabaseKey] - return protocol + "://" + user + ":" + password + "@" + hostname + ":" + port + "/" + database + return protocol + "://" + user + ":" + password + "@" + hostname + ":" + port + "/" + database + "?" + "sslmode=disable" }