File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package autolinkclient
2
2
3
3
import (
4
4
"errors"
5
- "io/ioutil "
5
+ "io"
6
6
"net/http"
7
7
"strings"
8
8
"testing"
@@ -66,7 +66,7 @@ func TestDeleteAutolinks(t *testing.T) {
66
66
{
67
67
name : "delete the autolink" ,
68
68
setupAPI : func (api * plugintest.API ) {
69
- body := ioutil .NopCloser (strings .NewReader ("{}" ))
69
+ body := io .NopCloser (strings .NewReader ("{}" ))
70
70
api .On ("PluginHTTP" , mock .AnythingOfType ("*http.Request" )).Return (& http.Response {StatusCode : http .StatusOK , Body : body })
71
71
},
72
72
},
@@ -103,7 +103,7 @@ func TestGetAutolinks(t *testing.T) {
103
103
{
104
104
name : "get the autolink" ,
105
105
setupAPI : func (api * plugintest.API ) {
106
- body := ioutil .NopCloser (strings .NewReader ("{}" ))
106
+ body := io .NopCloser (strings .NewReader ("{}" ))
107
107
api .On ("PluginHTTP" , mock .AnythingOfType ("*http.Request" )).Return (& http.Response {StatusCode : http .StatusOK , Body : body })
108
108
},
109
109
},
You can’t perform that action at this time.
0 commit comments