@@ -55,7 +55,7 @@ func runCloudTests(t *testing.T, setupCmd setupCommandFunc) {
5555
5656 stdout := ts .Stdout .String ()
5757 t .Log (stdout )
58- assert .Contains (t , stdout , `stack must be configured ` )
58+ assert .Contains (t , stdout , `must first authenticate ` )
5959 })
6060
6161 t .Run ("TestCloudLoggedInWithScriptToken" , func (t * testing.T ) {
@@ -209,10 +209,10 @@ func runCloudTests(t *testing.T, setupCmd setupCommandFunc) {
209209 require .NoError (t , fsext .WriteFile (ts .FS , filepath .Join (ts .Cwd , "archive.tar" ), data , 0o644 ))
210210
211211 ts .CmdArgs = []string {"k6" , "cloud" , "--verbose" , "--log-output=stdout" , "archive.tar" }
212- ts .Env ["K6_SHOW_CLOUD_LOGS" ] = "false" // no mock for the logs yet
212+ ts .Env ["K6_SHOW_CLOUD_LOGS" ] = "false" // no mock for the logs yet
213213 ts .Env ["K6_CLOUD_HOST" ] = srv .URL
214- ts .Env ["K6_CLOUD_TOKEN" ] = "foo" // doesn't matter, we mock the cloud
215- ts .Env ["K6_CLOUD_STACK_ID" ] = "1234" // doesn't matter, we mock the cloud
214+ ts .Env ["K6_CLOUD_TOKEN" ] = "foo" // doesn't matter, we mock the cloud
215+ ts .Env ["K6_CLOUD_STACK_ID" ] = "1234" // doesn't matter, we mock the cloud
216216
217217 cmd .ExecuteWithGlobalState (ts .GlobalState )
218218
@@ -331,11 +331,11 @@ func getSimpleCloudTestState(t *testing.T, script []byte, setupCmd setupCommandF
331331 ts := NewGlobalTestState (t )
332332 require .NoError (t , fsext .WriteFile (ts .FS , filepath .Join (ts .Cwd , "test.js" ), script , 0o644 ))
333333 ts .CmdArgs = setupCmd (cliFlags )
334- ts .Env ["K6_SHOW_CLOUD_LOGS" ] = "false" // no mock for the logs yet
334+ ts .Env ["K6_SHOW_CLOUD_LOGS" ] = "false" // no mock for the logs yet
335335 ts .Env ["K6_CLOUD_HOST" ] = srv .URL
336- ts .Env ["K6_CLOUD_TOKEN" ] = "foo" // doesn't matter, we mock the cloud
337- ts .Env ["K6_CLOUD_STACK_ID" ] = "1234" // doesn't matter, we mock the cloud
338- ts .Env ["K6_CLOUD_PROJECT_ID" ] = "1234" // doesn't matter, we mock the cloud
336+ ts .Env ["K6_CLOUD_TOKEN" ] = "foo" // doesn't matter, we mock the cloud
337+ ts .Env ["K6_CLOUD_STACK_ID" ] = "1234" // doesn't matter, we mock the cloud
338+ ts .Env ["K6_CLOUD_PROJECT_ID" ] = "1234" // doesn't matter, we mock the cloud
339339
340340 return ts
341341}
0 commit comments