From: peusterm Date: Mon, 14 Mar 2016 15:12:37 +0000 (+0100) Subject: Added some delays to test to see if this causes the problem in the CI. X-Git-Tag: v3.1~162^2~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=ef07004329ae295c984e46ab4334a661e8d19398;p=osm%2Fvim-emu.git Added some delays to test to see if this causes the problem in the CI. --- diff --git a/src/emuvim/test/test_emulator.py b/src/emuvim/test/test_emulator.py index 905b1c6..523c99c 100755 --- a/src/emuvim/test/test_emulator.py +++ b/src/emuvim/test/test_emulator.py @@ -6,6 +6,7 @@ Python API. Does not test API endpoints. This is done in separated test suites. """ +import time import unittest from emuvim.dcemulator.node import EmulatorCompute from emuvim.test.base import SimpleTestTopology @@ -55,6 +56,7 @@ class testEmulatorTopology( SimpleTestTopology ): assert(len(self.getDockernetContainers()) == 0) assert(len(self.net.hosts) == 2) assert(len(self.net.switches) == 2) + time.sleep(5) # check connectivity by using ping assert(self.net.ping([self.h[0], self.h[1]]) <= 0.0) # stop Mininet network @@ -80,6 +82,7 @@ class testEmulatorTopology( SimpleTestTopology ): assert(len(self.getDockernetContainers()) == 0) assert(len(self.net.hosts) == 2) assert(len(self.net.switches) == 5) + time.sleep(5) # check connectivity by using ping assert(self.net.ping([self.h[0], self.h[1]]) <= 0.0) # stop Mininet network