diff options
Diffstat (limited to 'workhorse/internal/api/block_test.go')
-rw-r--r-- | workhorse/internal/api/block_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/workhorse/internal/api/block_test.go b/workhorse/internal/api/block_test.go index 85ad54f3cfd..0beb401d2f5 100644 --- a/workhorse/internal/api/block_test.go +++ b/workhorse/internal/api/block_test.go @@ -1,7 +1,7 @@ package api import ( - "io/ioutil" + "io" "net/http" "net/http/httptest" "testing" @@ -46,7 +46,7 @@ func TestBlocker(t *testing.T) { rw.Flush() body := rw.Result().Body - data, err := ioutil.ReadAll(body) + data, err := io.ReadAll(body) require.NoError(t, err) require.NoError(t, body.Close()) |