@@ -307,12 +307,12 @@ def test_sub_app_fastapi_call(self):
307307        for  span  in  spans_with_http_attributes :
308308            self .assertEqual ("/sub/home" , span .attributes [HTTP_TARGET ])
309309        self .assertEqual (
310-             "https://testserver:443 /sub/home" ,
310+             "https://testserver/sub/home" ,
311311            span .attributes [HTTP_URL ],
312312        )
313313
314314    def  test_host_fastapi_call (self ):
315-         client  =  TestClient (self ._app , base_url = "https://testserver2" )
315+         client  =  TestClient (self ._app , base_url = "https://testserver2:443 " )
316316        client .get ("/" )
317317        spans  =  self .memory_exporter .get_finished_spans ()
318318
@@ -327,7 +327,7 @@ def test_host_fastapi_call(self):
327327        for  span  in  spans_with_http_attributes :
328328            self .assertEqual ("/" , span .attributes [HTTP_TARGET ])
329329            self .assertEqual (
330-                 "https://testserver2:443 /" ,
330+                 "https://testserver2/" ,
331331                span .attributes [HTTP_URL ],
332332            )
333333
@@ -385,7 +385,7 @@ def test_sub_app_fastapi_call(self):
385385        for  span  in  spans_with_http_attributes :
386386            self .assertEqual ("/sub/home" , span .attributes [HTTP_TARGET ])
387387        self .assertEqual (
388-             "https://testserver:443 /sub/home" ,
388+             "https://testserver/sub/home" ,
389389            span .attributes [HTTP_URL ],
390390        )
391391
0 commit comments