@@ -320,9 +320,8 @@ func (suite *UpdateIntegrationTestSuite) TestUpdateInfoHost() {
320320 cp .ExpectExitCode (0 )
321321
322322 cp = ts .SpawnWithOpts (
323- e2e .OptArgs ("update" ),
323+ e2e .OptArgs ("update" , "-v" ),
324324 e2e .OptAppendEnv (suite .env (false , false )... ),
325- e2e .OptAppendEnv ("VERBOSE=true" ),
326325 )
327326 cp .ExpectExitCode (0 )
328327
@@ -340,11 +339,11 @@ func (suite *UpdateIntegrationTestSuite) TestUpdateHost_SetBeforeInvocation() {
340339 suite .Assert ().Equal (ts .GetConfig (constants .UpdateInfoEndpointConfig ), "https://test.example.com/update" )
341340
342341 cp := ts .SpawnWithOpts (
343- e2e .OptArgs ("update" ),
342+ e2e .OptArgs ("update" , "-v" ),
344343 e2e .OptAppendEnv (suite .env (false , false )... ),
345- e2e .OptAppendEnv ("VERBOSE=true" ),
346344 )
347345 cp .ExpectExitCode (11 ) // Expect failure due to DNS resolution of fake host
346+ ts .IgnoreLogErrors ()
348347
349348 correctHostCount := 0
350349 incorrectHostCount := 0
@@ -372,22 +371,21 @@ func (suite *UpdateIntegrationTestSuite) TestUpdateHost() {
372371 ts := e2e .New (suite .T (), false )
373372 defer ts .Close ()
374373
375- cp := ts .Spawn ("config" , "set" , constants .UpdateEndpointConfig , "https://example.com/update" )
374+ cp := ts .Spawn ("config" , "set" , constants .UpdateEndpointConfig , "https://test. example.com/update" )
376375 cp .Expect ("Successfully set config key" )
377376 cp .ExpectExitCode (0 )
378377
379378 cp = ts .SpawnWithOpts (
380- e2e .OptArgs ("update" ),
379+ e2e .OptArgs ("update" , "-v" ),
381380 e2e .OptAppendEnv (suite .env (false , false )... ),
382- e2e .OptAppendEnv ("VERBOSE=true" ),
383381 )
384382 cp .ExpectExitCode (0 )
385383
386384 correctHostCount := 0
387385 incorrectHostCount := 0
388386 for _ , path := range ts .LogFiles () {
389387 contents := string (fileutils .ReadFileUnsafe (path ))
390- if strings .Contains (contents , "https://example.com/update" ) {
388+ if strings .Contains (contents , "https://test. example.com/update" ) {
391389 correctHostCount ++
392390 }
393391 if strings .Contains (contents , "https://state-tool.activestate.com/update" ) {
0 commit comments