Index: golang-github-likexian-gokit/xip/xip_test.go Description: failing networt tests There is a test that depends on having an IP address available in the build environment. This fails in sbuild with the unshare backend . =================================================================== --- golang-github-likexian-gokit.orig/xip/xip_test.go 2024-10-17 14:09:03.174487654 +0200 +++ golang-github-likexian-gokit/xip/xip_test.go 2024-10-17 14:13:03.502505688 +0200 @@ -207,36 +207,6 @@ } } -func TestGetEthIPv4(t *testing.T) { - ips, err := GetEthIPv4() - assert.Nil(t, err) - assert.Gt(t, len(ips), 0) -} - -func TestGetEthIPv4ByInterface(t *testing.T) { - ips, err := GetEthIPv4ByInterface("lo") - if err != nil { - ips, err = GetEthIPv4ByInterface("lo0") - } - assert.Nil(t, err) - assert.Gt(t, len(ips), 0) -} - -func TestGetEthIPv6(t *testing.T) { - _, err := GetEthIPv6() - assert.Nil(t, err) - // assert.Gt(t, len(ips), 0) -} - -func TestGetEthIPv6ByInterface(t *testing.T) { - _, err := GetEthIPv6ByInterface("lo") - if err != nil { - _, err = GetEthIPv6ByInterface("lo0") - } - assert.Nil(t, err) - // assert.Gt(t, len(ips), 0) -} - func TestIsContains(t *testing.T) { tests := []struct { cidr string