mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-misc/croc: remove unused patch(es)
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
committed by
Conrad Kostecki
parent
da74f26ff4
commit
647e0782af
@@ -1,32 +0,0 @@
|
||||
Disable tests that fail with network-sandbox
|
||||
|
||||
--- 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/schollz/croc/v9/src/models"
|
||||
@@ -189,19 +188,6 @@ func TestHashFile(t *testing.T) {
|
||||
assert.Equal(t, "e66c561610ad51e2", 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()
|
||||
fmt.Println(name)
|
||||
Reference in New Issue
Block a user