mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08: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:
@@ -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