summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2017-12-29 20:56:47 +0100
committerDave Henderson <dhenderson@gmail.com>2017-12-29 21:35:25 +0100
commitb98fbcd880d80a19e3a5b76601a3ba35fadf4c3c (patch)
tree556fd055c0c9063ceb37b08018dc4b9d65f3ad54 /net
parent63a99be4de3e93251a850cb2a8a18b43e6018291 (diff)
Naming template after input filename
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/net_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/net_test.go b/net/net_test.go
index ff4ffd37..bcd17a9b 100644
--- a/net/net_test.go
+++ b/net/net_test.go
@@ -14,7 +14,7 @@ func TestLookupIP(t *testing.T) {
}
func TestLookupIPs(t *testing.T) {
- assert.Equal(t, []string{"127.0.0.1"}, LookupIPs("localhost"))
+ assert.Equal(t, "127.0.0.1", LookupIPs("localhost")[0])
assert.Equal(t, []string{"169.254.255.254"}, LookupIPs("hostlocal.io"))
assert.Equal(t, []string{"93.184.216.34"}, LookupIPs("example.com"))
}