From d5ab7434d4218e26f52716c23e5510250d8e6537 Mon Sep 17 00:00:00 2001 From: Doug Fawley Date: Mon, 14 Oct 2019 16:16:11 -0700 Subject: [PATCH] credentials: accept another listen error as lack of support in test (#3097) --- credentials/credentials_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/credentials/credentials_test.go b/credentials/credentials_test.go index cc3aba0e3c9..00c51418278 100644 --- a/credentials/credentials_test.go +++ b/credentials/credentials_test.go @@ -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) }