Use separate config dirs for kopia
Fixes possible issues of opening the incorrect repo if tests are run in parallel.
This commit is contained in:
parent
3d78183651
commit
933ce690ca
3
src/pkg/storage/testdata/storage.go
vendored
3
src/pkg/storage/testdata/storage.go
vendored
@ -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))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user