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

This commit is contained in:
2025-11-05 09:04:42 -08:00
parent 2ee3ad3898
commit 54c6e2c0c9

View File

@@ -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();
});
}