Skip to content

Commit 72e9c39

Browse files
authored
Merge pull request #2079 from tecarter94/prevent-port-forward-conflict-maven-repo
Remove hardcoding of local port when port forwarding maven repo
2 parents 929d4cc + 93ee390 commit 72e9c39

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

openshift-with-appstudio-test/e2e/basictests.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,16 +688,14 @@ func downloadArtifact(mavenRepoDetails *MavenRepoDetails, gav string, ext string
688688
}
689689

690690
func getMavenRepoDetails(ta *testArgs) (*MavenRepoDetails, *portforward.PortForward) {
691-
localPort := 8081
692691
pf := portforward.PortForward{
693692
Config: kubeConfig,
694693
Clientset: kubeClient,
695694
Labels: metav1.LabelSelector{MatchLabels: map[string]string{"app": v1alpha1.RepoDeploymentName}},
696695
DestinationPort: 8080,
697-
ListenPort: localPort,
698696
Namespace: ta.ns,
699697
}
700-
_, err := pf.Start(context.TODO())
698+
localPort, err := pf.Start(context.TODO())
701699
if err != nil {
702700
debugAndFailTest(ta, fmt.Sprintf("unable to port forward maven repo %s", err.Error()))
703701
return nil, nil

0 commit comments

Comments
 (0)