Skip to content

Commit 0a5efcf

Browse files
committed
modify the starting port of pickFreeAddr
1 parent 1690292 commit 0a5efcf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

socks5/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func TestProxyWithAuthRejection(t *testing.T) {
117117
}
118118
}
119119

120-
var testPortCounter int32 = 50000
120+
var testPortCounter int32 = 25000
121121

122122
func pickFreeAddr(t testing.TB) string {
123123
port := atomic.AddInt32(&testPortCounter, 1)

test_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ func (t *testTun) Close() error {
536536
return nil
537537
}
538538

539-
var testPortCounter int32 = 40000
539+
var testPortCounter int32 = 20000
540540

541541
func pickFreeAddr(t testing.TB) string {
542542
port := atomic.AddInt32(&testPortCounter, 1)

0 commit comments

Comments
 (0)