Fix format specifiers in Printf-type functions.
This commit is contained in:
@@ -67,7 +67,7 @@ token2,user2,uid2
|
||||
t.Errorf("%d: expected user %#v, got %#v", i, testCase.User, user)
|
||||
}
|
||||
if testCase.Ok != ok {
|
||||
t.Errorf("%d: expected auth %f, got %f", i, testCase.Ok, ok)
|
||||
t.Errorf("%d: expected auth %v, got %v", i, testCase.Ok, ok)
|
||||
}
|
||||
switch {
|
||||
case err == nil && testCase.Err:
|
||||
|
@@ -49,7 +49,7 @@ func TestAuthenticateRequest(t *testing.T) {
|
||||
|
||||
<-success
|
||||
if len(context.requests) > 0 {
|
||||
t.Errorf("context should have no stored requests", context)
|
||||
t.Errorf("context should have no stored requests: %v", context)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ func TestAuthenticateRequestFailed(t *testing.T) {
|
||||
|
||||
<-failed
|
||||
if len(context.requests) > 0 {
|
||||
t.Errorf("context should have no stored requests", context)
|
||||
t.Errorf("context should have no stored requests: %v", context)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,6 +97,6 @@ func TestAuthenticateRequestError(t *testing.T) {
|
||||
|
||||
<-failed
|
||||
if len(context.requests) > 0 {
|
||||
t.Errorf("context should have no stored requests", context)
|
||||
t.Errorf("context should have no stored requests: %v", context)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user