fix module name
This commit is contained in:
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
|||||||
module github.com/nolwn/go-router
|
module gitea.nolanhellyer.com/nolan/go-router
|
||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|||||||
@ -2,7 +2,7 @@ package router
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
@ -115,7 +115,7 @@ func matchAndCheckRoute(r *Router, method string, path string, expectedBody stri
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
body, _ := ioutil.ReadAll(rr.Body)
|
body, _ := io.ReadAll(rr.Body)
|
||||||
|
|
||||||
if string(body) != string([]byte(expectedBody)) {
|
if string(body) != string([]byte(expectedBody)) {
|
||||||
err = fmt.Errorf(
|
err = fmt.Errorf(
|
||||||
|
|||||||
Reference in New Issue
Block a user