From 933ce690ca9b8e9daaaa239ac8c3b452f8624add Mon Sep 17 00:00:00 2001 From: Ashlie Martinez Date: Mon, 2 Oct 2023 12:15:38 -0700 Subject: [PATCH] Use separate config dirs for kopia Fixes possible issues of opening the incorrect repo if tests are run in parallel. --- src/pkg/storage/testdata/storage.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pkg/storage/testdata/storage.go b/src/pkg/storage/testdata/storage.go index 227a959bb..0653ee0fd 100644 --- a/src/pkg/storage/testdata/storage.go +++ b/src/pkg/storage/testdata/storage.go @@ -68,6 +68,9 @@ func NewFilesystemStorage(t tester.TestT) storage.Storage { }, storage.CommonConfig{ Corso: GetAndInsertCorso(""), + // Use separate kopia configs for each instance. Place in a new folder to + // avoid mixing data. + KopiaCfgDir: t.TempDir(), }) require.NoError(t, err, "creating storage", clues.ToCore(err))