aboutsummaryrefslogtreecommitdiff
path: root/src/net/dnsclient_unix_test.go
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2016-05-11 13:04:22 +0900
committerMikio Hara <mikioh.mikioh@gmail.com>2016-05-11 08:30:53 +0000
commitc1e88920606e78b06e936c9c249bd55f06dd8c51 (patch)
treef6e75202451bd6a69f693904a146a9aab8ea85b8 /src/net/dnsclient_unix_test.go
parentd1981ac313f6858cf1ec163dac94ea0d6904a731 (diff)
downloadgo-c1e88920606e78b06e936c9c249bd55f06dd8c51.tar.gz
go-c1e88920606e78b06e936c9c249bd55f06dd8c51.zip
net: fix nits found by vet
Change-Id: I323231f31c4e1e7415661ebd943a90b2f1e9da1c Reviewed-on: https://go-review.googlesource.com/23020 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/net/dnsclient_unix_test.go')
-rw-r--r--src/net/dnsclient_unix_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/dnsclient_unix_test.go b/src/net/dnsclient_unix_test.go
index c1ef5a32d3d..09bbd488660 100644
--- a/src/net/dnsclient_unix_test.go
+++ b/src/net/dnsclient_unix_test.go
@@ -582,11 +582,11 @@ func TestIgnoreLameReferrals(t *testing.T) {
}
if got := len(addrs); got != 1 {
- t.Fatal("got %d addresses, want 1", got)
+ t.Fatalf("got %d addresses, want 1", got)
}
if got, want := addrs[0].String(), "192.0.2.1"; got != want {
- t.Fatal("got address %v, want %v", got, want)
+ t.Fatalf("got address %v, want %v", got, want)
}
}
@@ -721,6 +721,6 @@ func TestIgnoreDNSForgeries(t *testing.T) {
}
if got := resp.answer[0].(*dnsRR_A).A; got != TestAddr {
- t.Error("got address %v, want %v", got, TestAddr)
+ t.Errorf("got address %v, want %v", got, TestAddr)
}
}