File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
sdk/core/azure_core_test/src Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ impl TestContext {
127127
128128 #[ cfg( not( target_arch = "wasm32" ) ) ]
129129 {
130+ if mode == TestMode :: Live {
131+ return None ;
132+ }
130133 let path = match find_ancestor_file ( self . crate_dir , ASSETS_FILE ) {
131134 Ok ( path) => path,
132135 Err ( _) if mode == TestMode :: Record => {
Original file line number Diff line number Diff line change @@ -146,7 +146,8 @@ mod bootstrap {
146146
147147 if let Some ( idx) = line. find ( LISTENING_PATTERN ) {
148148 let idx = idx + LISTENING_PATTERN . len ( ) ;
149- let url = line[ idx..] . parse ( ) ?;
149+ let mut url: Url = line[ idx..] . parse ( ) ?;
150+ url. set_host ( Some ( "localhost" ) ) ?;
150151 tracing:: event!( target: crate :: SPAN_TARGET , Level :: INFO , "listening on {url}" ) ;
151152
152153 return Ok ( url) ;
You can’t perform that action at this time.
0 commit comments