From 0ca3c2b701364e1e47a8aead6f154f98c39970c2 Mon Sep 17 00:00:00 2001 From: mikestefanello Date: Tue, 12 Apr 2022 21:05:19 -0400 Subject: [PATCH] Fix auth token expiration test failures. --- services/auth_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/auth_test.go b/services/auth_test.go index 40121db..1f58b77 100644 --- a/services/auth_test.go +++ b/services/auth_test.go @@ -69,10 +69,10 @@ func TestAuthClient_GetValidPasswordToken(t *testing.T) { require.NoError(t, err) assert.Equal(t, pt.ID, pt2.ID) - // Expire the token by pushed the date far enough back + // Expire the token by pushing the date far enough back _, err = c.ORM.PasswordToken. Update(). - SetCreatedAt(time.Now().Add(-(c.Config.App.PasswordToken.Expiration + 10))). + SetCreatedAt(time.Now().Add(-(c.Config.App.PasswordToken.Expiration + 3600))). Where(passwordtoken.ID(pt.ID)). Save(context.Background()) require.NoError(t, err)