*: fix govet warnings

This commit is contained in:
Eric Chiang 2016-02-12 13:18:49 -08:00
parent 07236da1e7
commit 1658e86b2a
2 changed files with 3 additions and 3 deletions

View file

@ -105,7 +105,7 @@ func TestMigrateClientMetadata(t *testing.T) {
id := strconv.Itoa(i)
m, err := dbMap.Get(clientIdentityModel{}, id)
if err != nil {
t.Errorf("case %d: failed to get model: %err", i, err)
t.Errorf("case %d: failed to get model: %v", i, err)
continue
}
cim, ok := m.(*clientIdentityModel)

View file

@ -301,7 +301,7 @@ func TestVerifyEmail(t *testing.T) {
for i, tt := range tests {
f := makeTestFixtures()
cb, err := f.mgr.VerifyEmail(user.EmailVerification{tt.evClaims})
cb, err := f.mgr.VerifyEmail(user.EmailVerification{Claims: tt.evClaims})
if tt.wantErr {
if err == nil {
t.Errorf("case %d: want non-nil err", i)
@ -371,7 +371,7 @@ func TestChangePassword(t *testing.T) {
for i, tt := range tests {
f := makeTestFixtures()
cb, err := f.mgr.ChangePassword(user.PasswordReset{tt.pwrClaims}, tt.newPassword)
cb, err := f.mgr.ChangePassword(user.PasswordReset{Claims: tt.pwrClaims}, tt.newPassword)
if tt.wantErr {
if err == nil {
t.Errorf("case %d: want non-nil err", i)