From b8f4267a361cc3a041ef2b1871c308e7314cf1ea Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 15 Jul 2023 18:31:52 +0200 Subject: [PATCH] lock: add more debug information to flaky test --- cmd/restic/lock_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/lock_test.go b/cmd/restic/lock_test.go index afad6cdab..bf36df858 100644 --- a/cmd/restic/lock_test.go +++ b/cmd/restic/lock_test.go @@ -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())