@@ -281,7 +281,7 @@ def test_hostname_parsing():
281281
282282 https_server_without_port = Connection ("https://mytrinoserver.domain" )
283283 assert https_server_without_port .host == "mytrinoserver.domain"
284- assert https_server_without_port .port == 8080
284+ assert https_server_without_port .port == constants . DEFAULT_TLS_PORT
285285 assert https_server_without_port .http_scheme == constants .HTTPS
286286
287287 http_server_with_port = Connection ("http://mytrinoserver.domain:9999" )
@@ -291,22 +291,22 @@ def test_hostname_parsing():
291291
292292 http_server_without_port = Connection ("http://mytrinoserver.domain" )
293293 assert http_server_without_port .host == "mytrinoserver.domain"
294- assert http_server_without_port .port == 8080
294+ assert http_server_without_port .port == constants . DEFAULT_PORT
295295 assert http_server_without_port .http_scheme == constants .HTTP
296296
297297 http_server_with_path = Connection ("http://mytrinoserver.domain/some_path" )
298298 assert http_server_with_path .host == "mytrinoserver.domain/some_path"
299- assert http_server_with_path .port == 8080
299+ assert http_server_with_path .port == constants . DEFAULT_PORT
300300 assert http_server_with_path .http_scheme == constants .HTTP
301301
302302 only_hostname = Connection ("mytrinoserver.domain" )
303303 assert only_hostname .host == "mytrinoserver.domain"
304- assert only_hostname .port == 8080
304+ assert only_hostname .port == constants . DEFAULT_PORT
305305 assert only_hostname .http_scheme == constants .HTTP
306306
307307 only_hostname_with_path = Connection ("mytrinoserver.domain/some_path" )
308308 assert only_hostname_with_path .host == "mytrinoserver.domain/some_path"
309- assert only_hostname_with_path .port == 8080
309+ assert only_hostname_with_path .port == constants . DEFAULT_PORT
310310 assert only_hostname_with_path .http_scheme == constants .HTTP
311311
312312
0 commit comments