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
|
||||
|
||||
@ -2,7 +2,7 @@ package router
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
@ -115,7 +115,7 @@ func matchAndCheckRoute(r *Router, method string, path string, expectedBody stri
|
||||
return
|
||||
}
|
||||
|
||||
body, _ := ioutil.ReadAll(rr.Body)
|
||||
body, _ := io.ReadAll(rr.Body)
|
||||
|
||||
if string(body) != string([]byte(expectedBody)) {
|
||||
err = fmt.Errorf(
|
||||
|
||||
Reference in New Issue
Block a user