From 602428717a0ae71d875e0325e699c7cb26084a89 Mon Sep 17 00:00:00 2001 From: George Paraskevopoulos Date: Tue, 8 Nov 2016 10:15:01 +0200 Subject: Encapsulate sleeps in function We have some sleeps into the testcase code. We can encapsulate them in a utility function to refactor them out of the code until we figure out the best way to remove them completely Change-Id: I44c32d8329c2e319660518a8a46debc22f02c753 Signed-off-by: George Paraskevopoulos --- test/functest/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/functest/utils.py') diff --git a/test/functest/utils.py b/test/functest/utils.py index d416765..b75cb3b 100644 --- a/test/functest/utils.py +++ b/test/functest/utils.py @@ -271,6 +271,12 @@ def wait_for_bgp_router_assocs(neutron_client, bgpvpn_id, *args): return all(check) +def wait_before_subtest(*args, **kwargs): + ''' This is a placeholder. + TODO: Replace delay with polling logic. ''' + time.sleep(30) + + def assert_and_get_compute_nodes(nova_client, required_node_number=2): """Get the compute nodes in the deployment -- cgit 1.2.3-korg