Skip to content

Commit

Permalink
Replace ioutil with io in middleware_test
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiught committed Nov 21, 2022
1 parent 3c1885c commit 059a573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package jwtmiddleware

import (
"context"
"io/ioutil"
"io"
"net/http"
"net/http/httptest"
"testing"
Expand Down Expand Up @@ -164,7 +164,7 @@ func Test_CheckJWT(t *testing.T) {
response, err := testServer.Client().Do(request)
require.NoError(t, err)

body, err := ioutil.ReadAll(response.Body)
body, err := io.ReadAll(response.Body)
require.NoError(t, err)
defer response.Body.Close()

Expand Down

0 comments on commit 059a573

Please sign in to comment.