Fix incorrect router setup
This commit is contained in:
@@ -57,7 +57,9 @@ func createTemporaryRouter(t *testing.T) (*mux.Router, *rushlink) {
|
||||
fs: fileStore,
|
||||
rootURL: rootURL,
|
||||
}
|
||||
return CreateMainRouter(&rl), &rl
|
||||
r := mux.NewRouter()
|
||||
InitMainRouter(r, &rl)
|
||||
return r, &rl
|
||||
}
|
||||
|
||||
// checkStatusCode checks whether the status code from a recorded response is equal
|
||||
|
||||
Reference in New Issue
Block a user