Skip to content

Commit a839dbb

Browse files
committed
Fix startup script test
1 parent 8c289e5 commit a839dbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/agent_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ func setupAgent(t *testing.T, metadata codersdk.WorkspaceAgentMetadata, ptyTimeo
673673
coordinator := tailnet.NewCoordinator()
674674
agentID := uuid.New()
675675
statsCh := make(chan *codersdk.AgentStats)
676+
fs := afero.NewMemMapFs()
676677
closer := agent.New(agent.Options{
677678
Client: &client{
678679
t: t,
@@ -681,7 +682,7 @@ func setupAgent(t *testing.T, metadata codersdk.WorkspaceAgentMetadata, ptyTimeo
681682
statsChan: statsCh,
682683
coordinator: coordinator,
683684
},
684-
Filesystem: afero.NewMemMapFs(),
685+
Filesystem: fs,
685686
Logger: slogtest.Make(t, nil).Leveled(slog.LevelDebug),
686687
ReconnectingPTYTimeout: ptyTimeout,
687688
})

0 commit comments

Comments
 (0)