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/testcase_4.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/functest/testcase_4.py') diff --git a/test/functest/testcase_4.py b/test/functest/testcase_4.py index 3811141..7aa0be2 100644 --- a/test/functest/testcase_4.py +++ b/test/functest/testcase_4.py @@ -11,7 +11,6 @@ import argparse import os from random import randint -import time import functest.utils.functest_logger as ft_logger import functest.utils.functest_utils as ft_utils @@ -243,7 +242,7 @@ def main(): logger.info("Waiting for the VMs to connect to each other using the" " updated network configuration") - time.sleep(30) + test_utils.wait_before_subtest() # Ping from VM4 to VM5 should work results.get_ping_status(vm_4, vm_4_ip, vm_5, vm_5_ip, @@ -267,7 +266,7 @@ def main(): logger.info("Waiting for the VMs to connect to each other using the" " updated network configuration") - time.sleep(30) + test_utils.wait_before_subtest() # Ping from VM1 to VM4 should work results.get_ping_status(vm_1, vm_1_ip, vm_4, vm_4_ip, -- cgit 1.2.3-korg