summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2019-10-03 04:56:26 -0300
committerAntoine GIRARD <sapk@users.noreply.github.com>2019-10-03 09:56:26 +0200
commit0bda87616182ba8c43c48be9a9db10be54d8aecc (patch)
tree40ac208cf0a523cc6cb129e474192ce83c7087c1 /integrations
parent740a0c4dd46a93ec6d35c44f57b677d99f267210 (diff)
downloadgitea-0bda87616182ba8c43c48be9a9db10be54d8aecc.tar.gz
gitea-0bda87616182ba8c43c48be9a9db10be54d8aecc.zip
Fix lfs locks (#8361)
* Extend time window for TestAPILFSLocksLogged
Diffstat (limited to 'integrations')
-rw-r--r--integrations/api_repo_lfs_locks_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/api_repo_lfs_locks_test.go b/integrations/api_repo_lfs_locks_test.go
index 6c0aeb1152..4fe92b33b5 100644
--- a/integrations/api_repo_lfs_locks_test.go
+++ b/integrations/api_repo_lfs_locks_test.go
@@ -126,7 +126,7 @@ func TestAPILFSLocksLogged(t *testing.T) {
assert.Len(t, lfsLocks.Locks, test.totalCount)
for i, lock := range lfsLocks.Locks {
assert.EqualValues(t, test.locksOwners[i].DisplayName(), lock.Owner.Name)
- assert.WithinDuration(t, test.locksTimes[i], lock.LockedAt, 3*time.Second)
+ assert.WithinDuration(t, test.locksTimes[i], lock.LockedAt, 10*time.Second)
assert.EqualValues(t, lock.LockedAt.Format(time.RFC3339), lock.LockedAt.Format(time.RFC3339Nano)) //locked at should be rounded to second
}