Skip to content

Commit

Permalink
Use default user tmp folder in config tests (#4165)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 authored Sep 6, 2023
1 parent 5d8c4d5 commit f94ecfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/unreleased/fix-config-tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: Use default user tmp folder in config tests

https://github.com/cs3org/reva/pull/4165
4 changes: 3 additions & 1 deletion cmd/revad/pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
package config

import (
"os"
"path/filepath"
"strings"
"testing"

Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit f94ecfe

Please sign in to comment.