summaryrefslogtreecommitdiffstats
path: root/integrations/api_repo_lfs_locks_test.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-12-11 23:17:08 -0800
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-12-12 15:17:08 +0800
commit9f033bf2b5ca789329c18a311359c182ffd0e55b (patch)
treedf1c4a83a88719df92a08ad570163908b83978d1 /integrations/api_repo_lfs_locks_test.go
parent2ad633344e9fb3b0617f64c810664336566eafbe (diff)
downloadgitea-9f033bf2b5ca789329c18a311359c182ffd0e55b.tar.gz
gitea-9f033bf2b5ca789329c18a311359c182ffd0e55b.zip
Make test more robust (#3167)
Diffstat (limited to 'integrations/api_repo_lfs_locks_test.go')
-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 11b017e87a..61e554634c 100644
--- a/integrations/api_repo_lfs_locks_test.go
+++ b/integrations/api_repo_lfs_locks_test.go
@@ -123,7 +123,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, 1*time.Second)
+ assert.WithinDuration(t, test.locksTimes[i], lock.LockedAt, 3*time.Second)
}
req = NewRequestWithJSON(t, "POST", fmt.Sprintf("/%s.git/info/lfs/locks/verify", test.repo.FullName()), map[string]string{})