diff --git a/testenv/Test-metalink-http.py b/testenv/Test-metalink-http.py index cafb5bef..53b08018 100755 --- a/testenv/Test-metalink-http.py +++ b/testenv/Test-metalink-http.py @@ -115,6 +115,7 @@ http_test = HTTPTest ( post_hook=post_test, ) +http_test.server_setup() srv_host, srv_port = http_test.servers[0].server_inst.socket.getsockname () MetaFileRules["SendHeader"] = { diff --git a/testenv/Test-metalink-xml.py b/testenv/Test-metalink-xml.py index 700418b2..eded04d6 100755 --- a/testenv/Test-metalink-xml.py +++ b/testenv/Test-metalink-xml.py @@ -75,6 +75,7 @@ http_test = HTTPTest ( post_hook=post_test, ) +http_test.server_setup() ### Get and use dynamic server sockname srv_host, srv_port = http_test.servers[0].server_inst.socket.getsockname ()