Skip to content

Commit 370b5c1

Browse files
Replave ioutil with io
1 parent 6c1ca04 commit 370b5c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/autolinkclient/client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package autolinkclient
22

33
import (
44
"errors"
5-
"io/ioutil"
5+
"io"
66
"net/http"
77
"strings"
88
"testing"
@@ -66,7 +66,7 @@ func TestDeleteAutolinks(t *testing.T) {
6666
{
6767
name: "delete the autolink",
6868
setupAPI: func(api *plugintest.API) {
69-
body := ioutil.NopCloser(strings.NewReader("{}"))
69+
body := io.NopCloser(strings.NewReader("{}"))
7070
api.On("PluginHTTP", mock.AnythingOfType("*http.Request")).Return(&http.Response{StatusCode: http.StatusOK, Body: body})
7171
},
7272
},
@@ -103,7 +103,7 @@ func TestGetAutolinks(t *testing.T) {
103103
{
104104
name: "get the autolink",
105105
setupAPI: func(api *plugintest.API) {
106-
body := ioutil.NopCloser(strings.NewReader("{}"))
106+
body := io.NopCloser(strings.NewReader("{}"))
107107
api.On("PluginHTTP", mock.AnythingOfType("*http.Request")).Return(&http.Response{StatusCode: http.StatusOK, Body: body})
108108
},
109109
},

0 commit comments

Comments
 (0)