[arvados] created: 2.7.0-6806-g8562a8390e

git repository hosting git at public.arvados.org
Fri May 31 17:56:12 UTC 2024


        at  8562a8390ed5a1fa46c399cb56a5978fe22d86ee (commit)


commit 8562a8390ed5a1fa46c399cb56a5978fe22d86ee
Author: Tom Clegg <tom at curii.com>
Date:   Fri May 31 13:54:08 2024 -0400

    20758: Skip ipv6 test if not supported by test host.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/lib/boot/supervisor_test.go b/lib/boot/supervisor_test.go
index b80fe1ed4c..23eaa5c800 100644
--- a/lib/boot/supervisor_test.go
+++ b/lib/boot/supervisor_test.go
@@ -8,6 +8,7 @@ import (
 	"net"
 	"testing"
 
+	"golang.org/x/net/nettest"
 	check "gopkg.in/check.v1"
 )
 
@@ -32,9 +33,11 @@ func (s *supervisorSuite) TestAddrIsLocal(c *check.C) {
 	c.Check(err, check.IsNil)
 	c.Check(is, check.Equals, true)
 
-	is, err = addrIsLocal("[::1]:32767")
-	c.Check(err, check.IsNil)
-	c.Check(is, check.Equals, true)
+	if nettest.SupportsIPv6() {
+		is, err = addrIsLocal("[::1]:32767")
+		c.Check(err, check.IsNil)
+		c.Check(is, check.Equals, true)
+	}
 
 	is, err = addrIsLocal("8.8.8.8:32767")
 	c.Check(err, check.IsNil)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list