mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
crypto/tls: fix vet issues again
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>
This commit is contained in:
parent
8f3c635434
commit
9f664df937
1 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -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)
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue