summaryrefslogtreecommitdiff
path: root/net-misc/croc/files/croc-disable-network-tests.patch
blob: 92a3a620b96e1b1f9c7a5534b39e2fee1bc3d764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)