diff options
Diffstat (limited to 'src/net/dnsclient_unix_test.go')
| -rw-r--r-- | src/net/dnsclient_unix_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/dnsclient_unix_test.go b/src/net/dnsclient_unix_test.go index 0da36303cc..2889a2c389 100644 --- a/src/net/dnsclient_unix_test.go +++ b/src/net/dnsclient_unix_test.go @@ -1054,7 +1054,7 @@ func testRotate(t *testing.T, rotate bool, nameservers, wantServers []string) { } defer conf.teardown() - var confLines []string + confLines := make([]string, 0, len(nameservers)) for _, ns := range nameservers { confLines = append(confLines, "nameserver "+ns) } |
