Skip to content

Commit ddb0135

Browse files
authored
Avoid port collision when allocating multiple ports (#56)
Give buffer of 10 ports per test process
1 parent 51df591 commit ddb0135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ssh-proxy/main_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ var _ = SynchronizedBeforeSuite(func() []byte {
7878
publicAuthorizedKey = context["authorized-key"]
7979

8080
node := GinkgoParallelProcess()
81-
startPort := 1070 * node
81+
startPort := 1070*node + 10
8282
portRange := 1000
8383
endPort := startPort + portRange
8484

0 commit comments

Comments
 (0)