an attempt to fix TestTCP6 on travis. It looks like travis doesnt know about ip6-localhost. Substitute it with [::1]

This commit is contained in:
Aliaksandr Valialkin
2017-11-08 14:10:58 +02:00
parent 56554327e4
commit cb0855b7a4
+1 -1
View File
@@ -13,7 +13,7 @@ func TestTCP4(t *testing.T) {
}
func TestTCP6(t *testing.T) {
testNewListener(t, "tcp6", "ip6-localhost:10081", 20, 1000)
testNewListener(t, "tcp6", "[::1]:10082", 20, 1000)
}
func testNewListener(t *testing.T, network, addr string, serversCount, requestsCount int) {