use super::Aurelia;
#[test]
fn runtime_initializes_and_spawns() {
let _aurelia = Aurelia::new();
let handle = crate::platform::runtime::handle();
let (tx, rx) = tokio::sync::oneshot::channel();
handle.spawn(async move {
let _ = tx.send(42u8);
});
let value = crate::platform::runtime::ensure()
.block_on(async { rx.await.expect("runtime task should send") });
assert_eq!(value, 42u8);
}