Browse Source

Fix lfs locks (#8361)

* Extend time window for TestAPILFSLocksLogged
for-closed-social
guillep2k 5 years ago
committed by Antoine GIRARD
parent
commit
0bda876161
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

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

Loading…
Cancel
Save