| 1 |
From: William 'jawn-smith' Wilson <[email protected]> |
| 2 |
Date: Fri, 13 Mar 2026 22:29:48 +0100 |
| 3 |
Subject: Skip test that requires network access |
| 4 |
|
| 5 |
Last-Update: 2022-06-29 |
| 6 |
forwarded:not-needed |
| 7 |
|
| 8 |
There is a build-time test in this package that is failing |
| 9 |
due to a lack of network access. Skip it to enable building |
| 10 |
of the package |
| 11 |
forwarded:not-needed |
| 12 |
--- |
| 13 |
network_test.go | 3 +++ |
| 14 |
1 file changed, 3 insertions(+) |
| 15 |
|
| 16 |
diff --git a/network_test.go b/network_test.go |
| 17 |
index 9c153f0..75a7bcb 100644 |
| 18 |
--- a/network_test.go |
| 19 |
+++ b/network_test.go |
| 20 |
@@ -8,6 +8,9 @@ import ( |
| 21 |
) |
| 22 |
|
| 23 |
func TestGetHostByName(t *testing.T) { |
| 24 |
+ // This test requires network access, which does not |
| 25 |
+ // work in package build environments |
| 26 |
+ t.Skip() |
| 27 |
tpl := `{{"www.google.com" | getHostByName}}` |
| 28 |
|
| 29 |
resolvedIP, _ := runRaw(tpl, nil) |