mirror of
https://github.com/restic/restic.git
synced 2024-12-23 00:07:25 +00:00
lock: add more debug information to flaky test
This commit is contained in:
parent
1f6883a05c
commit
b8f4267a36
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ func TestLockWaitCancel(t *testing.T) {
|
|||
test.Assert(t, strings.Contains(err.Error(), "context canceled"),
|
||||
"create normal lock with exclusively locked repo didn't return the correct error")
|
||||
test.Assert(t, cancelAfter <= duration && duration < retryLock-10*time.Millisecond,
|
||||
"create normal lock with exclusively locked repo didn't return in time")
|
||||
"create normal lock with exclusively locked repo didn't return in time, duration %v", duration)
|
||||
|
||||
test.OK(t, lock.Unlock())
|
||||
test.OK(t, elock.Unlock())
|
||||
|
|
Loading…
Reference in a new issue