From 03be64a094c88284ee3bdf36cc2cd382e820517f Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 3 Aug 2024 22:17:07 +0200 Subject: [PATCH] mount: enable debug log for TestMountSameTimestamps The test has started to become flaky. --- cmd/restic/cmd_mount_integration_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/restic/cmd_mount_integration_test.go b/cmd/restic/cmd_mount_integration_test.go index d764b4e4f..c5f4d193a 100644 --- a/cmd/restic/cmd_mount_integration_test.go +++ b/cmd/restic/cmd_mount_integration_test.go @@ -13,6 +13,7 @@ import ( "time" systemFuse "github.com/anacrolix/fuse" + "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/restic" rtest "github.com/restic/restic/internal/test" ) @@ -205,6 +206,11 @@ func TestMountSameTimestamps(t *testing.T) { t.Skip("Skipping fuse tests") } + debugEnabled := debug.TestLogToStderr(t) + if debugEnabled { + defer debug.TestDisableLog(t) + } + env, cleanup := withTestEnvironment(t) // must list snapshots more than once env.gopts.backendTestHook = nil