From 62271fe3fa6b327cf06024263cab81a6e1ad06a7 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Mon, 24 Jul 2017 11:55:42 -0300 Subject: [PATCH] bgp-ecmp-topo: use the new sleep function --- tests/topotests/bgp-ecmp-topo1/test_bgp_ecmp_topo1.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/topotests/bgp-ecmp-topo1/test_bgp_ecmp_topo1.py b/tests/topotests/bgp-ecmp-topo1/test_bgp_ecmp_topo1.py index 0e8bd7b0ea..15ebf879bf 100755 --- a/tests/topotests/bgp-ecmp-topo1/test_bgp_ecmp_topo1.py +++ b/tests/topotests/bgp-ecmp-topo1/test_bgp_ecmp_topo1.py @@ -29,7 +29,6 @@ test_bgp_ecmp_topo1.py: Test BGP topology with ECMP (Equal Cost MultiPath). import os import sys import pytest -from time import sleep # Save the Current Working Directory to find configuration files. CWD = os.path.dirname(os.path.realpath(__file__)) @@ -103,8 +102,7 @@ def setup_module(module): router.start() # Starting Hosts and init ExaBGP on each of them - logger.info('starting BGP on all {} Peers in 10s'.format(total_ebgp_peers)) - sleep(10) + topotest.sleep(10, 'starting BGP on all {} peers'.format(total_ebgp_peers)) peer_list = tgen.exabgp_peers() for pname, peer in peer_list.iteritems(): peer_dir = os.path.join(CWD, pname) -- 2.39.5