@@ -14,8 +14,8 @@ use futures_util::FutureExt;
14
14
use ic_certification:: { Delegation , Label } ;
15
15
use ic_transport_types:: { NodeSignature , QueryResponse , RejectCode , RejectResponse , ReplyResponse } ;
16
16
use reqwest:: Client ;
17
+ use std:: sync:: Arc ;
17
18
use std:: { collections:: BTreeMap , time:: Duration } ;
18
- use std:: { collections:: VecDeque , sync:: Arc } ;
19
19
#[ cfg( all( target_family = "wasm" , feature = "wasm-bindgen" ) ) ]
20
20
use wasm_bindgen_test:: wasm_bindgen_test;
21
21
@@ -50,6 +50,7 @@ fn make_agent_with_route_provider(
50
50
. unwrap ( )
51
51
}
52
52
53
+ #[ cfg( feature = "hyper" ) ]
53
54
fn make_agent_with_hyper_transport_route_provider (
54
55
route_provider : Arc < dyn RouteProvider > ,
55
56
tcp_retries : usize ,
@@ -61,6 +62,7 @@ fn make_agent_with_hyper_transport_route_provider(
61
62
client:: legacy:: { connect:: HttpConnector , Client as LegacyClient } ,
62
63
rt:: TokioExecutor ,
63
64
} ;
65
+ use std:: collections:: VecDeque ;
64
66
65
67
let connector = HttpsConnectorBuilder :: new ( )
66
68
. with_webpki_roots ( )
@@ -382,6 +384,7 @@ async fn reqwest_client_status_okay_when_request_retried() -> Result<(), AgentEr
382
384
}
383
385
384
386
#[ cfg_attr( not( target_family = "wasm" ) , tokio:: test) ]
387
+ #[ cfg( feature = "hyper" ) ]
385
388
async fn hyper_client_status_okay_when_request_retried ( ) -> Result < ( ) , AgentError > {
386
389
let map = BTreeMap :: new ( ) ;
387
390
let response = serde_cbor:: Value :: Map ( map) ;
0 commit comments