diff --git a/tokio/tests/thread_pool.rs b/tokio/tests/thread_pool.rs index e65f873c3..169c04fc8 100644 --- a/tokio/tests/thread_pool.rs +++ b/tokio/tests/thread_pool.rs @@ -15,6 +15,12 @@ use std::time::Duration; thread_local!(static FOO: Cell = Cell::new(0)); +#[test] +fn single_thread() { + // No panic when starting a runtime w/ a single thread + let _ = Builder::new().num_threads(1).build(); +} + #[test] fn shutdown_drops_futures() { for _ in 0..1_000 {