@@ -1041,16 +1041,16 @@ func TestCoreUpgradeWarningWithPackageInstalledButNotIndexed(t *testing.T) {
10411041 _ , _ , err = cli .Run ("core" , "install" , "test:x86@1.0.0" , "--additional-urls=" + url )
10421042 require .NoError (t , err )
10431043 //upgrade without index fires a warning
1044- _ , jsonStderr , _ := cli .Run ("core" , "upgrade" , "test:x86" , "--format" , "json" )
1045- requirejson .Query (t , jsonStderr , ".warnings[]" , `"missing package index for test:x86, future updates cannot be guaranteed"` )
1044+ jsonStdout , _ , _ := cli .Run ("core" , "upgrade" , "test:x86" , "--format" , "json" )
1045+ requirejson .Query (t , jsonStdout , ".warnings[]" , `"missing package index for test:x86, future updates cannot be guaranteed"` )
10461046 })
10471047
10481048 // removing installed.json
10491049 installedJson := cli .DataDir ().Join ("packages" , "test" , "hardware" , "x86" , "1.0.0" , "installed.json" )
10501050 require .NoError (t , os .Remove (installedJson .String ()))
10511051
10521052 t .Run ("missing both installed.json and additional-urls" , func (t * testing.T ) {
1053- _ , jsonStderr , _ := cli .Run ("core" , "upgrade" , "test:x86" , "--format" , "json" )
1054- requirejson .Query (t , jsonStderr , ".warnings[]" , `"missing package index for test:x86, future updates cannot be guaranteed"` )
1053+ jsonStdout , _ , _ := cli .Run ("core" , "upgrade" , "test:x86" , "--format" , "json" )
1054+ requirejson .Query (t , jsonStdout , ".warnings[]" , `"missing package index for test:x86, future updates cannot be guaranteed"` )
10551055 })
10561056}
0 commit comments