Commit 1658e86b authored by Eric Chiang's avatar Eric Chiang

*: fix govet warnings

parent 07236da1
...@@ -105,7 +105,7 @@ func TestMigrateClientMetadata(t *testing.T) { ...@@ -105,7 +105,7 @@ func TestMigrateClientMetadata(t *testing.T) {
id := strconv.Itoa(i) id := strconv.Itoa(i)
m, err := dbMap.Get(clientIdentityModel{}, id) m, err := dbMap.Get(clientIdentityModel{}, id)
if err != nil { 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 continue
} }
cim, ok := m.(*clientIdentityModel) cim, ok := m.(*clientIdentityModel)
......
...@@ -301,7 +301,7 @@ func TestVerifyEmail(t *testing.T) { ...@@ -301,7 +301,7 @@ func TestVerifyEmail(t *testing.T) {
for i, tt := range tests { for i, tt := range tests {
f := makeTestFixtures() 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 tt.wantErr {
if err == nil { if err == nil {
t.Errorf("case %d: want non-nil err", i) t.Errorf("case %d: want non-nil err", i)
...@@ -371,7 +371,7 @@ func TestChangePassword(t *testing.T) { ...@@ -371,7 +371,7 @@ func TestChangePassword(t *testing.T) {
for i, tt := range tests { for i, tt := range tests {
f := makeTestFixtures() 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 tt.wantErr {
if err == nil { if err == nil {
t.Errorf("case %d: want non-nil err", i) t.Errorf("case %d: want non-nil err", i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment