From 5250be3c84cde113861ec3bfcd308ea8be4bb888 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Tue, 28 Dec 2021 14:01:14 -0800 Subject: [PATCH] LFUtils.wait_until_ports_disappear: check for port statuses once per second Signed-off-by: Matthew Stidham --- py-json/LANforge/LFUtils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/py-json/LANforge/LFUtils.py b/py-json/LANforge/LFUtils.py index 204e7ec2..69db6efa 100644 --- a/py-json/LANforge/LFUtils.py +++ b/py-json/LANforge/LFUtils.py @@ -576,8 +576,7 @@ def wait_until_ports_disappear(base_url="http://localhost:8080", port_list=(), d if len(found_stations) > 0: if debug: pprint.pprint(("wait_until_ports_disappear found_stations:", found_stations)) - sleep(1) # safety - return + sleep(1) # check for ports once per second def waitUntilPortsAppear(base_url="http://localhost:8080", port_list=(), debug=False):