Browse Source

Make test more robust (#3167)

tags/v1.21.12.1
Ethan Koenig Bo-Yi Wu 8 years ago
parent
commit
9f033bf2b5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      integrations/api_repo_lfs_locks_test.go

+ 1
- 1
integrations/api_repo_lfs_locks_test.go View File

@@ -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{})


Loading…
Cancel
Save