@@ -281,7 +281,7 @@ def test_hostname_parsing():
281
281
282
282
https_server_without_port = Connection ("https://mytrinoserver.domain" )
283
283
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
285
285
assert https_server_without_port .http_scheme == constants .HTTPS
286
286
287
287
http_server_with_port = Connection ("http://mytrinoserver.domain:9999" )
@@ -291,22 +291,22 @@ def test_hostname_parsing():
291
291
292
292
http_server_without_port = Connection ("http://mytrinoserver.domain" )
293
293
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
295
295
assert http_server_without_port .http_scheme == constants .HTTP
296
296
297
297
http_server_with_path = Connection ("http://mytrinoserver.domain/some_path" )
298
298
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
300
300
assert http_server_with_path .http_scheme == constants .HTTP
301
301
302
302
only_hostname = Connection ("mytrinoserver.domain" )
303
303
assert only_hostname .host == "mytrinoserver.domain"
304
- assert only_hostname .port == 8080
304
+ assert only_hostname .port == constants . DEFAULT_PORT
305
305
assert only_hostname .http_scheme == constants .HTTP
306
306
307
307
only_hostname_with_path = Connection ("mytrinoserver.domain/some_path" )
308
308
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
310
310
assert only_hostname_with_path .http_scheme == constants .HTTP
311
311
312
312
0 commit comments