mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-31 11:53:59 -05:00
chore: Update user1 createdunix
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
parent
60c1fa840b
commit
7603de279a
1 changed files with 2 additions and 2 deletions
|
@ -771,11 +771,11 @@ func TestGetInactiveUsers(t *testing.T) {
|
||||||
require.NoError(t, unittest.PrepareTestDatabase())
|
require.NoError(t, unittest.PrepareTestDatabase())
|
||||||
|
|
||||||
// all inactive users
|
// all inactive users
|
||||||
// user1's createdunix is 1730468968
|
// user1's createdunix is 1672578000
|
||||||
users, err := user_model.GetInactiveUsers(db.DefaultContext, 0)
|
users, err := user_model.GetInactiveUsers(db.DefaultContext, 0)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
assert.Len(t, users, 1)
|
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)))
|
users, err = user_model.GetInactiveUsers(db.DefaultContext, time.Duration(interval*int64(time.Second)))
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Empty(t, users)
|
require.Empty(t, users)
|
||||||
|
|
Loading…
Reference in a new issue