mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Make test more robust (#3167)
This commit is contained in:
		@@ -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{})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user