Skip to content

Commit

Permalink
credentials: accept another listen error as lack of support in test (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley committed Oct 14, 2019
1 parent 027cd62 commit d5ab743
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions credentials/credentials_test.go
Expand Up @@ -150,8 +150,9 @@ func launchServer(t *testing.T, hs serverHandshake, done chan AuthInfo) net.List
func launchServerOnListenAddress(t *testing.T, hs serverHandshake, done chan AuthInfo, address string) net.Listener {
lis, err := net.Listen("tcp", address)
if err != nil {
if strings.Contains(err.Error(), "bind: cannot assign requested address") {
t.Skip("missing IPv6 support")
if strings.Contains(err.Error(), "bind: cannot assign requested address") ||
strings.Contains(err.Error(), "socket: address family not supported by protocol") {
t.Skipf("no support for address %v", address)
}
t.Fatalf("Failed to listen: %v", err)
}
Expand Down

0 comments on commit d5ab743

Please sign in to comment.