diff --git a/changelog/unreleased/fix-config-tests.md b/changelog/unreleased/fix-config-tests.md new file mode 100644 index 0000000000..074844d8ff --- /dev/null +++ b/changelog/unreleased/fix-config-tests.md @@ -0,0 +1,3 @@ +Bugfix: Use default user tmp folder in config tests + +https://github.com/cs3org/reva/pull/4165 diff --git a/cmd/revad/pkg/config/config_test.go b/cmd/revad/pkg/config/config_test.go index 3d4385c0db..20eb38be2d 100644 --- a/cmd/revad/pkg/config/config_test.go +++ b/cmd/revad/pkg/config/config_test.go @@ -19,6 +19,8 @@ package config import ( + "os" + "path/filepath" "strings" "testing" @@ -248,7 +250,7 @@ nats_token = "secret-token-example"` MaxCPUs: "1", TracingEnabled: true, TracingEndpoint: "localhost:6831", - ConfigDumpFile: "/tmp/reva-dump.toml", + ConfigDumpFile: filepath.Join(os.TempDir(), "reva-dump.toml"), }, c2.Core) assert.Equal(t, Vars{