1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-10 04:17:59 +02:00

Fix test for ctx.User.AttemptNumber fix

This commit is contained in:
amygit 2016-11-30 10:32:57 -08:00
parent 75a82c4a51
commit 67cb40ea6f

View File

@ -146,7 +146,7 @@ func TestAfterAuthFail_Reset(t *testing.T) {
}
lock.afterAuthFail(ctx)
if val := storer.Users[email][StoreAttemptNumber].(int64); val != int64(0) {
if val := storer.Users[email][StoreAttemptNumber].(int64); val != int64(1) {
t.Error("StoreAttemptNumber set incorrectly:", val)
}
if current, ok = storer.Users[email][StoreAttemptTime].(time.Time); !ok || current.Before(old) {