Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
driftluo committed Dec 24, 2024
1 parent e616d5a commit affcd9c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/tests/ckb_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<tokio::runtime::Runtime> =
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");
}

Expand Down

0 comments on commit affcd9c

Please sign in to comment.