From aaac63da8d90cdd5e403a7820cb77f658acefd83 Mon Sep 17 00:00:00 2001
From: Michael Eischer <michael.eischer@fau.de>
Date: Fri, 4 Nov 2022 22:48:18 +0100
Subject: [PATCH] lock: Tweak timeouts for lock refresh test

For some reason the test fails from time to time. Increase the timeouts
to hopefully avoid this issue.
---
 cmd/restic/lock_test.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cmd/restic/lock_test.go b/cmd/restic/lock_test.go
index faa608221..a70d32897 100644
--- a/cmd/restic/lock_test.go
+++ b/cmd/restic/lock_test.go
@@ -133,10 +133,11 @@ func TestLockSuccessfulRefresh(t *testing.T) {
 	repo, cleanup, _ := openTestRepo(t, nil)
 	defer cleanup()
 
+	t.Log("test for successful lock refresh")
 	// reduce locking intervals to be suitable for testing
 	ri, rt := refreshInterval, refreshabilityTimeout
-	refreshInterval = 20 * time.Millisecond
-	refreshabilityTimeout = 100 * time.Millisecond
+	refreshInterval = 40 * time.Millisecond
+	refreshabilityTimeout = 200 * time.Millisecond
 	defer func() {
 		refreshInterval, refreshabilityTimeout = ri, rt
 	}()