aboutsummaryrefslogtreecommitdiff
path: root/src/net/dnsclient_unix_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/dnsclient_unix_test.go')
-rw-r--r--src/net/dnsclient_unix_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/dnsclient_unix_test.go b/src/net/dnsclient_unix_test.go
index fc1d40f18b..f36446f159 100644
--- a/src/net/dnsclient_unix_test.go
+++ b/src/net/dnsclient_unix_test.go
@@ -1129,7 +1129,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)
}