diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /net-misc/croc/files | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'net-misc/croc/files')
-rw-r--r-- | net-misc/croc/files/croc-disable-network-tests.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-misc/croc/files/croc-disable-network-tests.patch b/net-misc/croc/files/croc-disable-network-tests.patch new file mode 100644 index 000000000000..92a3a620b96e --- /dev/null +++ b/net-misc/croc/files/croc-disable-network-tests.patch @@ -0,0 +1,33 @@ +Disable tests that fail with network-sandbox + +index 101162e..5be096e 100644 +--- a/src/utils/utils_test.go ++++ b/src/utils/utils_test.go +@@ -7,7 +7,6 @@ import ( + "log" + "math/rand" + "os" +- "strings" + "testing" + + "github.com/stretchr/testify/assert" +@@ -169,19 +168,6 @@ func TestHashFile(t *testing.T) { + assert.Equal(t, "18c9673a4bb8325d323e7f24fda9ae1e", fmt.Sprintf("%x", hashed)) + } + +-func TestPublicIP(t *testing.T) { +- ip, err := PublicIP() +- fmt.Println(ip) +- assert.True(t, strings.Contains(ip, ".") || strings.Contains(ip, ":")) +- assert.Nil(t, err) +-} +- +-func TestLocalIP(t *testing.T) { +- ip := LocalIP() +- fmt.Println(ip) +- assert.True(t, strings.Contains(ip, ".") || strings.Contains(ip, ":")) +-} +- + func TestGetRandomName(t *testing.T) { + name := GetRandomName() + assert.NotEmpty(t, name) |