Skip to content

Commit

Permalink
crypto/tls: fix vet issues again
Browse files Browse the repository at this point in the history
While we're here, use test[%d] in place of #%d.

Change-Id: Ie30afcab9673e78d3ea7ca80f5e662fbea897488
Reviewed-on: https://go-review.googlesource.com/31936
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
josharian committed Oct 25, 2016
1 parent 8f3c635 commit 9f664df
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions handshake_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1111,16 +1111,16 @@ func TestVerifyPeerCertificate(t *testing.T) {
},
validate: func(t *testing.T, testNo int, clientCalled, serverCalled bool, clientErr, serverErr error) {
if clientErr != nil {
t.Errorf("#%d: client handshake failed: %v", testNo, clientErr)
t.Errorf("test[%d]: client handshake failed: %v", testNo, clientErr)
}
if serverErr != nil {
t.Errorf("#%d: server handshake failed: %v", testNo, serverErr)
t.Errorf("test[%d]: server handshake failed: %v", testNo, serverErr)
}
if !clientCalled {
t.Error("#%d: client did not call callback", testNo)
t.Errorf("test[%d]: client did not call callback", testNo)
}
if !serverCalled {
t.Error("#%d: server did not call callback", testNo)
t.Errorf("test[%d]: server did not call callback", testNo)
}
},
},
Expand Down Expand Up @@ -1177,13 +1177,13 @@ func TestVerifyPeerCertificate(t *testing.T) {
},
validate: func(t *testing.T, testNo int, clientCalled, serverCalled bool, clientErr, serverErr error) {
if clientErr != nil {
t.Errorf("#%d: client handshake failed: %v", testNo, clientErr)
t.Errorf("test[%d]: client handshake failed: %v", testNo, clientErr)
}
if serverErr != nil {
t.Errorf("#%d: server handshake failed: %v", testNo, serverErr)
t.Errorf("test[%d]: server handshake failed: %v", testNo, serverErr)
}
if !clientCalled {
t.Error("#%d: client did not call callback", testNo)
t.Errorf("test[%d]: client did not call callback", testNo)
}
},
},
Expand Down

0 comments on commit 9f664df

Please sign in to comment.