Added check for port_list in wait_until_ports_disappear to ensure list is being used

This commit is contained in:
Logan Lipke
2020-12-18 15:39:35 -08:00
parent e11cb78bd1
commit 5477368369

View File

@@ -445,7 +445,10 @@ def waitUntilPortsDisappear(base_url="http://localhost:8080", port_list=[], debu
def wait_until_ports_disappear(base_url="http://localhost:8080", port_list=[], debug=False):
print("Waiting until ports disappear...")
url = "/port/1"
found_stations = port_list.copy()
if isinstance(port_list, list):
found_stations = port_list.copy()
else:
found_stations = [port_list]
while len(found_stations) > 0:
found_stations = []