From 7c192212410ef877aea5c0d018cc0f9ae8b41879 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Tue, 24 Mar 2020 11:49:42 +0300 Subject: [PATCH] minor --- util/auto_hosts_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/auto_hosts_test.go b/util/auto_hosts_test.go index 6243b5ca..ce06e361 100644 --- a/util/auto_hosts_test.go +++ b/util/auto_hosts_test.go @@ -37,7 +37,7 @@ func TestAutoHosts(t *testing.T) { ips := ah.Process("localhost") assert.True(t, ips[0].Equal(net.ParseIP("127.0.0.1"))) ips = ah.Process("newhost") - assert.True(t, len(ips) == 0) + assert.True(t, ips == nil) table := ah.List() ips, _ = table["host"]