@@ -109,7 +109,7 @@ func TestPipelineReadFromSlowly(t *testing.T) {
109109 go func () {
110110 time .Sleep (200 * time .Millisecond )
111111 var err error
112- buf , err = ioutil .ReadAll (r )
112+ buf , err = io .ReadAll (r )
113113 readErr <- err
114114 }()
115115
@@ -361,7 +361,7 @@ func TestFunction(t *testing.T) {
361361 pipe .Function (
362362 "farewell" ,
363363 func (_ context.Context , _ pipe.Env , stdin io.Reader , stdout io.Writer ) error {
364- buf , err := ioutil .ReadAll (stdin )
364+ buf , err := io .ReadAll (stdin )
365365 if err != nil {
366366 return err
367367 }
@@ -389,7 +389,7 @@ func TestPipelineWithFunction(t *testing.T) {
389389 pipe .Function (
390390 "farewell" ,
391391 func (_ context.Context , _ pipe.Env , stdin io.Reader , stdout io.Writer ) error {
392- buf , err := ioutil .ReadAll (stdin )
392+ buf , err := io .ReadAll (stdin )
393393 if err != nil {
394394 return err
395395 }
@@ -419,7 +419,7 @@ func (s ErrorStartingStage) Name() string {
419419func (s ErrorStartingStage ) Start (
420420 ctx context.Context , env pipe.Env , stdin io.ReadCloser ,
421421) (io.ReadCloser , error ) {
422- return ioutil .NopCloser (& bytes.Buffer {}), s .err
422+ return io .NopCloser (& bytes.Buffer {}), s .err
423423}
424424
425425func (s ErrorStartingStage ) Wait () error {
@@ -525,7 +525,7 @@ func TestScannerAlwaysFlushes(t *testing.T) {
525525 "compute-length" ,
526526 func (_ context.Context , _ pipe.Env , stdin io.Reader , _ io.Writer ) error {
527527 var err error
528- length , err = io .Copy (ioutil .Discard , stdin )
528+ length , err = io .Copy (io .Discard , stdin )
529529 return err
530530 },
531531 ),
@@ -567,7 +567,7 @@ func TestScannerFinishEarly(t *testing.T) {
567567 "compute-length" ,
568568 func (_ context.Context , _ pipe.Env , stdin io.Reader , _ io.Writer ) error {
569569 var err error
570- length , err = io .Copy (ioutil .Discard , stdin )
570+ length , err = io .Copy (io .Discard , stdin )
571571 return err
572572 },
573573 ),
0 commit comments