()
| 124 | |
| 125 | #[tokio::test] |
| 126 | async fn test_runtime_start_stop() { |
| 127 | let runtime = Runtime::new(); |
| 128 | runtime.start(); |
| 129 | assert!(runtime.is_running()); |
| 130 | |
| 131 | runtime.stop().await; |
| 132 | assert!(!runtime.is_running()); |
| 133 | } |
| 134 | |
| 135 | #[tokio::test] |
| 136 | async fn test_runtime_spawn() { |