Fix test
Some checks failed
CI / Check typos (push) Successful in 23s
CI / Check links (push) Successful in 25s
CI / Build and test (push) Successful in 3m55s
CI / Clippy (push) Failing after 10m54s
CI / Build container (push) Has been cancelled
CI / Deploy on waypoint (push) Has been cancelled
Some checks failed
CI / Check typos (push) Successful in 23s
CI / Check links (push) Successful in 25s
CI / Build and test (push) Successful in 3m55s
CI / Clippy (push) Failing after 10m54s
CI / Build container (push) Has been cancelled
CI / Deploy on waypoint (push) Has been cancelled
This commit is contained in:
@@ -78,7 +78,12 @@ fn page_wrapper<'a>(
|
||||
|
||||
#[test]
|
||||
fn server_builds_without_panic() {
|
||||
// Catches some runtime errors thrown by axum,
|
||||
// e.g bad route nesting or routes not starting with "/"
|
||||
let _server = build_server().into_router();
|
||||
tokio::runtime::Builder::new_current_thread()
|
||||
.enable_all()
|
||||
.build()
|
||||
.unwrap()
|
||||
.block_on(async {
|
||||
// Needs tokio context
|
||||
let _server = build_server().into_router();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user