lock: add more debug information to flaky test

This commit is contained in:
Michael Eischer 2023-07-15 18:31:52 +02:00
parent 1f6883a05c
commit b8f4267a36
1 changed files with 1 additions and 1 deletions

View File

@ -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())