Skip to main content

background_runtime

Function background_runtime 

Source
pub(crate) fn background_runtime() -> Handle
Expand description

A background tokio runtime shared by every server in this test binary.

Spawning onto it, rather than onto the caller’s own runtime, is what lets a plain #[test] function use Server as freely as a #[tokio::test].