Skip to content

Commit 06159c4

Browse files
committed
Fix custom runtime test
1 parent 6d69cbf commit 06159c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
//! Here is an example of how to create an asynchronous client.
2727
//!
2828
//! ```no_run
29-
//! # #[cfg(feature = "async")]
29+
//! # #[cfg(all(feature = "async", feature = "tokio"))]
3030
//! # {
3131
//! use esplora_client::Builder;
3232
//! let builder = Builder::new("https://blockstream.info/testnet/api");
@@ -1036,7 +1036,7 @@ mod test {
10361036
#[test]
10371037
fn use_with_custom_runtime() {
10381038
let builder =
1039-
Builder::<TestRuntime>::new_with_runtime("https://blockstream.info/testnet/api");
1039+
Builder::<TestRuntime>::new_custom_runtime("https://blockstream.info/testnet/api");
10401040

10411041
let client = builder.build_async();
10421042
assert!(client.is_ok());

0 commit comments

Comments
 (0)