From 5b71240bb55507a911b3940003bdc350b34384e9 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Sun, 23 Oct 2016 14:10:11 -0700 Subject: [PATCH] all: minor vet fixes Change-Id: I22f0f3e792052762499f632571155768b4052bc9 Reviewed-on: https://go-review.googlesource.com/31759 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- handshake_server_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handshake_server_test.go b/handshake_server_test.go index 8d760ca..765a974 100644 --- a/handshake_server_test.go +++ b/handshake_server_test.go @@ -1253,18 +1253,18 @@ func TestGetConfigForClient(t *testing.T) { if len(test.errorSubstring) == 0 { if serverErr != nil || clientErr != nil { - t.Errorf("%#d: expected no error but got serverErr: %q, clientErr: %q", i, serverErr, clientErr) + t.Errorf("test[%d]: expected no error but got serverErr: %q, clientErr: %q", i, serverErr, clientErr) } if test.verify != nil { if err := test.verify(configReturned); err != nil { - t.Errorf("#%d: verify returned error: %v", i, err) + t.Errorf("test[%d]: verify returned error: %v", i, err) } } } else { if serverErr == nil { - t.Errorf("%#d: expected error containing %q but got no error", i, test.errorSubstring) + t.Errorf("test[%d]: expected error containing %q but got no error", i, test.errorSubstring) } else if !strings.Contains(serverErr.Error(), test.errorSubstring) { - t.Errorf("%#d: expected error to contain %q but it was %q", i, test.errorSubstring, serverErr) + t.Errorf("test[%d]: expected error to contain %q but it was %q", i, test.errorSubstring, serverErr) } } }