Skip to content

Commit

Permalink
Remove ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
segevfiner committed Apr 11, 2023
1 parent aaff755 commit 86d6b4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dockerexec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"bytes"
"context"
"fmt"
"io/ioutil"
"io"
"os"
"strings"
"testing"
Expand Down Expand Up @@ -171,11 +171,11 @@ func TestPipes(t *testing.T) {
require.NoError(t, err)
assert.Equal(t, "input", string(line))

buf, err := ioutil.ReadAll(outbr)
buf, err := io.ReadAll(outbr)
require.NoError(t, err)
assert.Empty(t, buf)

buf, err = ioutil.ReadAll(errbr)
buf, err = io.ReadAll(errbr)
require.NoError(t, err)
assert.Empty(t, buf)

Expand Down

0 comments on commit 86d6b4f

Please sign in to comment.