Skip to content

Commit

Permalink
Replave ioutil with io
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavaggarwal2308 committed Jul 14, 2024
1 parent 6c1ca04 commit 370b5c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/autolinkclient/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package autolinkclient

import (
"errors"
"io/ioutil"
"io"
"net/http"
"strings"
"testing"
Expand Down Expand Up @@ -66,7 +66,7 @@ func TestDeleteAutolinks(t *testing.T) {
{
name: "delete the autolink",
setupAPI: func(api *plugintest.API) {
body := ioutil.NopCloser(strings.NewReader("{}"))
body := io.NopCloser(strings.NewReader("{}"))
api.On("PluginHTTP", mock.AnythingOfType("*http.Request")).Return(&http.Response{StatusCode: http.StatusOK, Body: body})
},
},
Expand Down Expand Up @@ -103,7 +103,7 @@ func TestGetAutolinks(t *testing.T) {
{
name: "get the autolink",
setupAPI: func(api *plugintest.API) {
body := ioutil.NopCloser(strings.NewReader("{}"))
body := io.NopCloser(strings.NewReader("{}"))
api.On("PluginHTTP", mock.AnythingOfType("*http.Request")).Return(&http.Response{StatusCode: http.StatusOK, Body: body})
},
},
Expand Down

0 comments on commit 370b5c1

Please sign in to comment.