From c1d196152f6b4ace7b5e707e48edcec6dab3d298 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Mon, 8 May 2017 22:31:41 -0700 Subject: [PATCH] Fixes vet errors. --- api/catalog_test.go | 4 ++-- consul/client_test.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/catalog_test.go b/api/catalog_test.go index d2f29ab504..29a3578802 100644 --- a/api/catalog_test.go +++ b/api/catalog_test.go @@ -17,7 +17,7 @@ func TestCatalog_Datacenters(t *testing.T) { retry.Run(t, func(r *retry.R) { datacenters, err := catalog.Datacenters() if err != nil { - r.Fatalf("catalog.Datacenters: ", err) + r.Fatal(err) } if len(datacenters) < 1 { r.Fatal("got 0 datacenters want at least one") @@ -33,7 +33,7 @@ func TestCatalog_Nodes(t *testing.T) { retry.RunWith(retry.ThreeTimes(), t, func(r *retry.R) { nodes, meta, err := catalog.Nodes(nil) if err != nil { - r.Fatalf("catalog.Nodes: ", err) + r.Fatal(err) } if meta.LastIndex == 0 { r.Fatal("got last index 0 want > 0") diff --git a/consul/client_test.go b/consul/client_test.go index b9ce3ccd6a..730721346d 100644 --- a/consul/client_test.go +++ b/consul/client_test.go @@ -83,7 +83,7 @@ func TestClient_JoinLAN(t *testing.T) { joinLAN(t, c1, s1) retry.Run(t, func(r *retry.R) { if got, want := c1.servers.NumServers(), 1; got != want { - r.Fatal("got %d servers want %d", got, want) + r.Fatalf("got %d servers want %d", got, want) } if got, want := len(s1.LANMembers()), 2; got != want { r.Fatalf("got %d server LAN members want %d", got, want) @@ -346,7 +346,7 @@ func TestClient_SnapshotRPC(t *testing.T) { // Wait until we've got a healthy server. retry.Run(t, func(r *retry.R) { if got, want := c1.servers.NumServers(), 1; got != want { - r.Fatal("got %d servers want %d", got, want) + r.Fatalf("got %d servers want %d", got, want) } }) @@ -401,7 +401,7 @@ func TestClient_SnapshotRPC_TLS(t *testing.T) { // Wait until we've got a healthy server. retry.Run(t, func(r *retry.R) { if got, want := c1.servers.NumServers(), 1; got != want { - r.Fatal("got %d servers want %d", got, want) + r.Fatalf("got %d servers want %d", got, want) } })