@@ -35,7 +35,6 @@ use crate::services::router::service::RouterCreator;
35
35
use crate :: services:: subgraph;
36
36
use crate :: services:: supergraph;
37
37
use crate :: spec:: Schema ;
38
- #[ cfg( test) ]
39
38
use crate :: uplink:: license_enforcement:: LicenseState ;
40
39
41
40
/// Mocks for services the Apollo Router must integrate with.
@@ -340,10 +339,10 @@ impl<'a> TestHarness<'a> {
340
339
. boxed_clone ( ) )
341
340
}
342
341
343
- # [ cfg ( test ) ]
344
- pub ( crate ) async fn build_http_service ( self ) -> Result < HttpService , BoxError > {
342
+ /// Build the HTTP service
343
+ pub async fn build_http_service ( self ) -> Result < HttpService , BoxError > {
345
344
use crate :: axum_factory:: ListenAddrAndRouter ;
346
- use crate :: axum_factory:: tests :: make_axum_router;
345
+ use crate :: axum_factory:: axum_http_server_factory :: make_axum_router;
347
346
use crate :: router_factory:: RouterFactory ;
348
347
349
348
let ( config, supergraph_creator) = self . build_common ( ) . await ?;
@@ -369,8 +368,7 @@ impl<'a> TestHarness<'a> {
369
368
}
370
369
371
370
/// An HTTP-level service, as would be given to Hyper’s server
372
- #[ cfg( test) ]
373
- pub ( crate ) type HttpService = tower:: util:: BoxService <
371
+ pub type HttpService = tower:: util:: BoxService <
374
372
http:: Request < crate :: services:: router:: Body > ,
375
373
http:: Response < axum:: body:: Body > ,
376
374
std:: convert:: Infallible ,
0 commit comments