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 7de0ae9 commit e616d5a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tests/ckb_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,13 @@ fn test_cargo_hang_6() {
pub static RUNTIME: LazyCell<tokio::runtime::Runtime> =
LazyCell::new(|| tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap());
}
let a = async { "1" };
let a = async {
reqwest::get("https://httpbin.org/ip")
.await
.unwrap()
.json::<std::collections::HashMap<String, String>>()
.await
};
let block = RUNTIME.with(|rt| rt.block_on(a));
// let block = block.unwrap();
// assert!(block.is_none());
Expand Down

0 comments on commit e616d5a

Please sign in to comment.