From e7e43095d8cf40913e721a8f80a13070c920a596 Mon Sep 17 00:00:00 2001 From: Lucas Winther Date: Wed, 11 Nov 2026 20:10:25 +0100 Subject: [PATCH] protondrive: restore the config storage even when rclone's config is in memory The password test's cleanup restored the config path before the storage, and setting the storage does nothing while the path is empty, so with an in-memory config the storage was left behind. Co-Authored-By: Claude Opus 5.5 --- backend/protondrive/security_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/protondrive/security_test.go b/backend/protondrive/security_test.go index 500c41377..17b561337 100644 --- a/backend/protondrive/security_test.go +++ b/backend/protondrive/security_test.go @@ -688,9 +688,10 @@ func TestPasswordStoredObscured(t *testing.T) { path := filepath.Join(t.TempDir(), "rclone.conf") require.NoError(t, config.SetConfigPath(path)) t.Cleanup(func() { - assert.NoError(t, config.SetConfigPath(oldPath)) + // SetData does nothing without a config path. config.SetData(oldData) assert.True(t, config.Data() == oldData, "the config storage isn't restored") + assert.NoError(t, config.SetConfigPath(oldPath)) }) configfile.Install()