Skip to content

Commit

Permalink
test: change the port and the tcp6 address
Browse files Browse the repository at this point in the history
  • Loading branch information
ksw2000 committed Dec 19, 2024
1 parent 76ce3a6 commit 700e617
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tcplisten/tcplisten_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ func testConfig(t *testing.T, cfg Config) {
if runtime.GOOS == "windows" {
t.SkipNow()
}
testConfigV(t, cfg, "tcp4", "localhost:10081")
testConfigV(t, cfg, "tcp6", "ip6-localhost:10081")
testConfigV(t, cfg, "tcp", "localhost:10083")
testConfigV(t, cfg, "tcp", "[::1]:10083")
testConfigV(t, cfg, "tcp4", "localhost:10083")
testConfigV(t, cfg, "tcp6", "[::1]:10083")
}

func testConfigV(t *testing.T, cfg Config, network, addr string) {
Expand Down

0 comments on commit 700e617

Please sign in to comment.