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
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:
@@ -78,7 +78,12 @@ fn page_wrapper<'a>(
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn server_builds_without_panic() {
|
fn server_builds_without_panic() {
|
||||||
// Catches some runtime errors thrown by axum,
|
tokio::runtime::Builder::new_current_thread()
|
||||||
// e.g bad route nesting or routes not starting with "/"
|
.enable_all()
|
||||||
|
.build()
|
||||||
|
.unwrap()
|
||||||
|
.block_on(async {
|
||||||
|
// Needs tokio context
|
||||||
let _server = build_server().into_router();
|
let _server = build_server().into_router();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user