mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-06 03:54:17 +02:00
Fix lock test.
This commit is contained in:
parent
f7e1ff2c8c
commit
c74bb311b3
@ -23,12 +23,8 @@ func TestBeforeAuth(t *testing.T) {
|
||||
authboss.NewConfig()
|
||||
ctx := authboss.NewContext()
|
||||
|
||||
if nil != L.BeforeAuth(ctx) {
|
||||
t.Error("Expected it to break early.")
|
||||
}
|
||||
|
||||
if err := L.BeforeAuth(ctx); err != nil {
|
||||
t.Error(err)
|
||||
if err := L.BeforeAuth(ctx); err == nil {
|
||||
t.Error("Want death because user not loaded:", err)
|
||||
}
|
||||
|
||||
ctx.User = authboss.Attributes{"locked": true}
|
||||
|
Loading…
Reference in New Issue
Block a user