diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-12-11 23:17:08 -0800 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-12-12 15:17:08 +0800 |
commit | 9f033bf2b5ca789329c18a311359c182ffd0e55b (patch) | |
tree | df1c4a83a88719df92a08ad570163908b83978d1 /integrations/api_repo_lfs_locks_test.go | |
parent | 2ad633344e9fb3b0617f64c810664336566eafbe (diff) | |
download | gitea-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.go | 2 |
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{}) |