Debian Codegraph @

debian/patches/0002-no-network.patch

raw
1 Index: golang-github-likexian-gokit/xip/xip_test.go
2 Description: failing networt tests
3 There is a test that depends on having an IP address available in the
4 build environment. This fails in sbuild with the unshare backend .
5 ===================================================================
6 --- golang-github-likexian-gokit.orig/xip/xip_test.go 2024-10-17 14:09:03.174487654 +0200
7 +++ golang-github-likexian-gokit/xip/xip_test.go 2024-10-17 14:13:03.502505688 +0200
8 @@ -207,36 +207,6 @@
9 }
10 }
11
12 -func TestGetEthIPv4(t *testing.T) {
13 - ips, err := GetEthIPv4()
14 - assert.Nil(t, err)
15 - assert.Gt(t, len(ips), 0)
16 -}
17 -
18 -func TestGetEthIPv4ByInterface(t *testing.T) {
19 - ips, err := GetEthIPv4ByInterface("lo")
20 - if err != nil {
21 - ips, err = GetEthIPv4ByInterface("lo0")
22 - }
23 - assert.Nil(t, err)
24 - assert.Gt(t, len(ips), 0)
25 -}
26 -
27 -func TestGetEthIPv6(t *testing.T) {
28 - _, err := GetEthIPv6()
29 - assert.Nil(t, err)
30 - // assert.Gt(t, len(ips), 0)
31 -}
32 -
33 -func TestGetEthIPv6ByInterface(t *testing.T) {
34 - _, err := GetEthIPv6ByInterface("lo")
35 - if err != nil {
36 - _, err = GetEthIPv6ByInterface("lo0")
37 - }
38 - assert.Nil(t, err)
39 - // assert.Gt(t, len(ips), 0)
40 -}
41 -
42 func TestIsContains(t *testing.T) {
43 tests := []struct {
44 cidr string