@@ -1041,16 +1041,16 @@ func TestCoreUpgradeWarningWithPackageInstalledButNotIndexed(t *testing.T) {
1041
1041
_ ,
_ ,
err = cli .
Run (
"core" ,
"install" ,
"test:[email protected] " ,
"--additional-urls=" + url )
1042
1042
require .NoError (t , err )
1043
1043
//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"` )
1046
1046
})
1047
1047
1048
1048
// removing installed.json
1049
1049
installedJson := cli .DataDir ().Join ("packages" , "test" , "hardware" , "x86" , "1.0.0" , "installed.json" )
1050
1050
require .NoError (t , os .Remove (installedJson .String ()))
1051
1051
1052
1052
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"` )
1055
1055
})
1056
1056
}
0 commit comments