@@ -157,17 +157,20 @@ var setupScroll = func(t *testing.T, scroll domain.File) (string, string) {
157157
158158var setupServeCmd = func (ctx context.Context , t * testing.T , cwd string , additionalArgs []string ) {
159159
160+ args := append ([]string {"--cwd" , cwd , "serve" }, additionalArgs ... )
161+
160162 b := bytes .NewBufferString ("" )
161163
162164 serveCmd := cmd .RootCmd
163165 serveCmd .SetErr (b )
164166 serveCmd .SetOut (b )
165- serveCmd .SetArgs (append ([]string {"--cwd" , cwd , "serve" }, additionalArgs ... ))
166-
167+ serveCmd .SetArgs (args )
167168 // Create a new context for each test case
168169
169170 cmd .ServeCommand .SetContext (ctx )
170171
172+ logger .Log ().Info (fmt .Sprintf ("Running serve command with args: %v" , args ))
173+
171174 connected , err := startAndTestServeCommand (ctx , t , serveCmd )
172175 if ! connected {
173176 t .Fatalf ("Failed to connect to daemon web server: %v" , err )
@@ -306,7 +309,7 @@ func TestColdstarterServeCommand(t *testing.T) {
306309 ctx , cancel := context .WithCancelCause (context .Background ())
307310 defer cancel (errors .New ("test ended" ))
308311
309- setupServeCmd (ctx , t , path , []string {})
312+ setupServeCmd (ctx , t , path , []string {"--coldstarter" })
310313
311314 defer func () {
312315 signals .Stop ()
0 commit comments