From 67cb40ea6f7542a0cf56ab190f43a88fab17aab0 Mon Sep 17 00:00:00 2001 From: amygit Date: Wed, 30 Nov 2016 10:32:57 -0800 Subject: [PATCH] Fix test for ctx.User.AttemptNumber fix --- lock/lock_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lock/lock_test.go b/lock/lock_test.go index cbec8dd..fa97c27 100644 --- a/lock/lock_test.go +++ b/lock/lock_test.go @@ -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) {