Use localhost to test IPv6 connectivity

This commit is contained in:
Julian Kornberger
2015-08-18 22:10:32 +02:00
parent 994e6a4239
commit dd7e903125
2 changed files with 4 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ func TestConnIPv6(t *testing.T) {
t.Skip("skipping test in short mode.")
}
c, err := DialTimeout("[2001:660:3302:282a:204:75ff:fe9f:9e11]:21", 5*time.Second)
c, err := DialTimeout("[::1]:21", 5*time.Second)
if err != nil {
t.Fatal(err)
}