From 7603de279ad87b346a67099d31f4b621e95025d6 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Tue, 10 Dec 2024 20:42:15 +0000 Subject: [PATCH] chore: Update user1 createdunix Signed-off-by: Awiteb --- models/user/user_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/user/user_test.go b/models/user/user_test.go index ee456e3ce4..1c734fa926 100644 --- a/models/user/user_test.go +++ b/models/user/user_test.go @@ -771,11 +771,11 @@ func TestGetInactiveUsers(t *testing.T) { require.NoError(t, unittest.PrepareTestDatabase()) // all inactive users - // user1's createdunix is 1730468968 + // user1's createdunix is 1672578000 users, err := user_model.GetInactiveUsers(db.DefaultContext, 0) require.NoError(t, err) assert.Len(t, users, 1) - interval := time.Now().Unix() - 1730468968 + 3600*24 + interval := time.Now().Unix() - 1672578000 + 3600*24 users, err = user_model.GetInactiveUsers(db.DefaultContext, time.Duration(interval*int64(time.Second))) require.NoError(t, err) require.Empty(t, users)