Fix incorrect router setup

This commit is contained in:
Daan Sprenkels
2020-07-27 14:22:43 +02:00
parent 03a04389ae
commit 1c09bb0a71
2 changed files with 21 additions and 21 deletions

View File

@@ -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