mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
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:
committed by
GitHub
parent
6916d34458
commit
1c04b20fde
@ -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,
|
||||
|
||||
|
Reference in New Issue
Block a user