all: minor vet fixes
Change-Id: I22f0f3e792052762499f632571155768b4052bc9 Reviewed-on: https://go-review.googlesource.com/31759 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
56db2e9d77
commit
5b71240bb5
@ -1253,18 +1253,18 @@ func TestGetConfigForClient(t *testing.T) {
|
|||||||
|
|
||||||
if len(test.errorSubstring) == 0 {
|
if len(test.errorSubstring) == 0 {
|
||||||
if serverErr != nil || clientErr != nil {
|
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 test.verify != nil {
|
||||||
if err := test.verify(configReturned); err != 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 {
|
} else {
|
||||||
if serverErr == nil {
|
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) {
|
} 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user