diff options
| author | Charlotte <lotte@chir.rs> | 2025-03-21 15:43:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-21 10:43:10 -0400 |
| commit | d93adbc11194303427b2f8f8d7db849fb67d6c1a (patch) | |
| tree | bfce1fa39be86ec9469d22f706027893fc129ff0 /cmd | |
| parent | f730326814f49025028cf91f3105565f1356bc19 (diff) | |
| download | anubis-d93adbc11194303427b2f8f8d7db849fb67d6c1a.tar.xz anubis-d93adbc11194303427b2f8f8d7db849fb67d6c1a.zip | |
Skip TestLookup test when networking is disabled (#49)
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/anubis/internal/dnsbl/dnsbl_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/anubis/internal/dnsbl/dnsbl_test.go b/cmd/anubis/internal/dnsbl/dnsbl_test.go index 0ead488..ccadd64 100644 --- a/cmd/anubis/internal/dnsbl/dnsbl_test.go +++ b/cmd/anubis/internal/dnsbl/dnsbl_test.go @@ -3,6 +3,7 @@ package dnsbl import ( "fmt" "net" + "os" "testing" ) @@ -46,6 +47,11 @@ func TestReverse6(t *testing.T) { } func TestLookup(t *testing.T) { + if os.Getenv("DONT_USE_NETWORK") != "" { + t.Skip("test requires network egress") + return + } + resp, err := Lookup("27.65.243.194") if err != nil { t.Fatalf("it broked: %v", err) |
