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