@@ -109,7 +109,7 @@ func TestPipelineReadFromSlowly(t *testing.T) {
109
109
go func () {
110
110
time .Sleep (200 * time .Millisecond )
111
111
var err error
112
- buf , err = ioutil .ReadAll (r )
112
+ buf , err = io .ReadAll (r )
113
113
readErr <- err
114
114
}()
115
115
@@ -361,7 +361,7 @@ func TestFunction(t *testing.T) {
361
361
pipe .Function (
362
362
"farewell" ,
363
363
func (_ context.Context , _ pipe.Env , stdin io.Reader , stdout io.Writer ) error {
364
- buf , err := ioutil .ReadAll (stdin )
364
+ buf , err := io .ReadAll (stdin )
365
365
if err != nil {
366
366
return err
367
367
}
@@ -389,7 +389,7 @@ func TestPipelineWithFunction(t *testing.T) {
389
389
pipe .Function (
390
390
"farewell" ,
391
391
func (_ context.Context , _ pipe.Env , stdin io.Reader , stdout io.Writer ) error {
392
- buf , err := ioutil .ReadAll (stdin )
392
+ buf , err := io .ReadAll (stdin )
393
393
if err != nil {
394
394
return err
395
395
}
@@ -419,7 +419,7 @@ func (s ErrorStartingStage) Name() string {
419
419
func (s ErrorStartingStage ) Start (
420
420
ctx context.Context , env pipe.Env , stdin io.ReadCloser ,
421
421
) (io.ReadCloser , error ) {
422
- return ioutil .NopCloser (& bytes.Buffer {}), s .err
422
+ return io .NopCloser (& bytes.Buffer {}), s .err
423
423
}
424
424
425
425
func (s ErrorStartingStage ) Wait () error {
@@ -525,7 +525,7 @@ func TestScannerAlwaysFlushes(t *testing.T) {
525
525
"compute-length" ,
526
526
func (_ context.Context , _ pipe.Env , stdin io.Reader , _ io.Writer ) error {
527
527
var err error
528
- length , err = io .Copy (ioutil .Discard , stdin )
528
+ length , err = io .Copy (io .Discard , stdin )
529
529
return err
530
530
},
531
531
),
@@ -567,7 +567,7 @@ func TestScannerFinishEarly(t *testing.T) {
567
567
"compute-length" ,
568
568
func (_ context.Context , _ pipe.Env , stdin io.Reader , _ io.Writer ) error {
569
569
var err error
570
- length , err = io .Copy (ioutil .Discard , stdin )
570
+ length , err = io .Copy (io .Discard , stdin )
571
571
return err
572
572
},
573
573
),
0 commit comments