fix: Set cache dir for coderd tests (#3160)

* fix: Set cache dir for coderd in codedtest

* fix: Ensure server cli tests have a cache path

To avoid sharing default path.
This commit is contained in:
Mathias Fredriksson
2022-07-25 19:24:32 +03:00
committed by GitHub
parent 6916d34458
commit 1c04b20fde
3 changed files with 79 additions and 15 deletions

View File

@ -182,6 +182,7 @@ func newWithCloser(t *testing.T, options *Options) (*codersdk.Client, io.Closer)
AgentInactiveDisconnectTimeout: 5 * time.Second,
AccessURL: serverURL,
Logger: slogtest.Make(t, nil).Leveled(slog.LevelDebug),
CacheDir: t.TempDir(),
Database: db,
Pubsub: pubsub,