@@ -262,7 +262,8 @@ func testBundleInstallProcess(t *testing.T, context spec.G, it spec.S) {
262262 executions = append (executions , execution )
263263
264264 if strings .Contains (strings .Join (execution .Args , " " ), "config --global cache_path --parseable" ) {
265- fmt .Fprintf (execution .Stdout , "cache_path=other_dir/other_cache" )
265+ _ , err := fmt .Fprintf (execution .Stdout , "cache_path=other_dir/other_cache" )
266+ Expect (err ).NotTo (HaveOccurred ())
266267 }
267268
268269 return nil
@@ -398,8 +399,10 @@ func testBundleInstallProcess(t *testing.T, context spec.G, it spec.S) {
398399 it .Before (func () {
399400 executable .ExecuteCall .Stub = func (execution pexec.Execution ) error {
400401 if strings .Contains (strings .Join (execution .Args , " " ), "config --global path" ) {
401- fmt .Fprint (execution .Stdout , "stdout output" )
402- fmt .Fprint (execution .Stderr , "stderr output" )
402+ _ , err := fmt .Fprint (execution .Stdout , "stdout output" )
403+ Expect (err ).NotTo (HaveOccurred ())
404+ _ , err = fmt .Fprint (execution .Stderr , "stderr output" )
405+ Expect (err ).NotTo (HaveOccurred ())
403406
404407 return errors .New ("bundle config path failed" )
405408 }
@@ -434,8 +437,10 @@ func testBundleInstallProcess(t *testing.T, context spec.G, it spec.S) {
434437 it .Before (func () {
435438 executable .ExecuteCall .Stub = func (execution pexec.Execution ) error {
436439 if strings .Contains (strings .Join (execution .Args , " " ), "install" ) {
437- fmt .Fprint (execution .Stdout , "stdout output" )
438- fmt .Fprint (execution .Stderr , "stderr output" )
440+ _ , err := fmt .Fprint (execution .Stdout , "stdout output" )
441+ Expect (err ).NotTo (HaveOccurred ())
442+ _ , err = fmt .Fprint (execution .Stderr , "stderr output" )
443+ Expect (err ).NotTo (HaveOccurred ())
439444
440445 return errors .New ("bundle install failed" )
441446 }
0 commit comments