diff --git a/src/tests/ckb_rpc.rs b/src/tests/ckb_rpc.rs index 72161d0..02c8fec 100644 --- a/src/tests/ckb_rpc.rs +++ b/src/tests/ckb_rpc.rs @@ -211,6 +211,22 @@ fn test_cargo_hang_6() { let block = RUNTIME.with(|rt| rt.block_on(a)); // let block = block.unwrap(); // assert!(block.is_none()); + println!("{:?}", block); + println!("999"); +} + +#[test] +fn test_cargo_hang_7() { + use std::cell::LazyCell; + thread_local! { + pub static RUNTIME: LazyCell = + LazyCell::new(|| tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap()); + } + let a = async { "1" }; + let block = RUNTIME.with(|rt| rt.block_on(a)); + // let block = block.unwrap(); + // assert!(block.is_none()); + println!("{:?}", block); println!("999"); }