Fix test
All checks were successful
CI / Check typos (push) Successful in 9s
CI / Check links (push) Successful in 46s
CI / Clippy (push) Successful in 54s
CI / Build and test (push) Successful in 1m8s
CI / Build container (push) Has been skipped
CI / Deploy on waypoint (push) Has been skipped

This commit is contained in:
2025-11-05 09:17:53 -08:00
parent 2ee3ad3898
commit 2f2f7c68f1

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