Fixes vet errors.

This commit is contained in:
James Phillips 2017-05-08 22:31:41 -07:00
parent 6103198732
commit bccf493262
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
2 changed files with 5 additions and 5 deletions

View File

@ -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")

View File

@ -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)
}
})