mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 14:25:52 +01:00
fix TestMemoryOIDCManager test case
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
375650e9be
commit
a1e45277dd
1 changed files with 1 additions and 1 deletions
|
|
@ -1098,7 +1098,7 @@ func TestMemoryOIDCManager(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
oidcMgr.removePendingAuth(authReq.State)
|
||||
require.Len(t, oidcMgr.pendingAuths, 0)
|
||||
authReq.IssuedAt = util.GetTimeAsMsSinceEpoch(time.Now().Add(-61 * time.Second))
|
||||
authReq.IssuedAt = util.GetTimeAsMsSinceEpoch(time.Now().Add(-600 * time.Second))
|
||||
oidcMgr.addPendingAuth(authReq)
|
||||
require.Len(t, oidcMgr.pendingAuths, 1)
|
||||
_, err = oidcMgr.getPendingAuth(authReq.State)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue