mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 11:26:58 +02:00
Stabilize AccountServiceSpec (#3670)
This commit is contained in:
@@ -38,6 +38,7 @@ class AccountServiceSpec extends AnyFunSuite with ServiceSpecBase {
|
||||
assert(user().lastLoginDate.isEmpty)
|
||||
|
||||
val date1 = new Date
|
||||
Thread.sleep(1000)
|
||||
AccountService.updateLastLoginDate(root)
|
||||
assert(user().lastLoginDate.get.compareTo(date1) > 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user