Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto committed Dec 11, 2023
1 parent d11f08d commit e6c5ede
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/activator/handler/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"bytes"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/http/httptest"
Expand Down Expand Up @@ -155,7 +154,7 @@ func TestActivatorChainHandlerWithFullDuplex(t *testing.T) {
// The server responding with the sent body.
echoServer := httptest.NewServer(http.HandlerFunc(
func(w http.ResponseWriter, req *http.Request) {
body, err := ioutil.ReadAll(req.Body)
body, err := io.ReadAll(req.Body)
if err != nil {
log.Printf("error reading body: %v", err)
http.Error(w, fmt.Sprintf("error reading body: %v", err), http.StatusInternalServerError)
Expand Down Expand Up @@ -254,7 +253,7 @@ func send(client *http.Client, url string, body []byte, rHost string) error {

bd := io.Reader(resp.Body)

rec, err := ioutil.ReadAll(bd)
rec, err := io.ReadAll(bd)

if err != nil {
return fmt.Errorf("failed to read body: %w", err)
Expand Down

0 comments on commit e6c5ede

Please sign in to comment.