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 5be74de commit 7de0ae9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/tests/ckb_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,20 @@ fn test_cargo_hang_5() {
println!("999");
}

#[test]
fn test_cargo_hang_6() {
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!("999");
}

#[test]
fn test_get_packed_block_with_cycles_fail() {
let ckb_client = CkbRpcClient::new(TEST_CKB_RPC_URL);
Expand Down

0 comments on commit 7de0ae9

Please sign in to comment.