Skip to content

Commit

Permalink
use io instead of ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
pddg committed Mar 3, 2023
1 parent 5d75409 commit 05787bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package metrics

import (
"context"
"io/ioutil"
"io"
"net"
"net/http"
"strings"
Expand Down Expand Up @@ -38,7 +38,7 @@ func TestMetricsServer(t *testing.T) {
t.Error(err)
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
t.Error(err)
}
Expand Down

0 comments on commit 05787bc

Please sign in to comment.