Skip to content

Commit 254cfaf

Browse files
Merge pull request #1010 from simonpasquier/fix-port-forward-command
test/e2e: fix port-forward command
2 parents 86d1114 + ceba375 commit 254cfaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/framework/framework.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ func (f *Framework) ForwardPort(t *testing.T, svc string, port int) (string, fun
313313
t.Helper()
314314

315315
ctx, cancel := context.WithCancel(context.Background())
316-
cmd := exec.CommandContext(ctx, "oc", "port-forward", fmt.Sprintf("service/%s", svc), fmt.Sprintf(":%d", port), "-n", f.Ns, "--config", f.kubeConfigPath)
316+
// Taken from github.com/openshift/origin/test/extended/etcd/etcd_test_runner.go
317+
cmd := exec.CommandContext(ctx, "oc", "port-forward", fmt.Sprintf("service/%s", svc), fmt.Sprintf(":%d", port), "-n", f.Ns, "--kubeconfig", f.kubeConfigPath)
317318

318319
cleanUp := func() {
319320
cancel()

0 commit comments

Comments
 (0)