Further test fixes

+ tests/dynamips/test_hypervisor.py: Increase sleep time to prevent
   random test failures
 + tests/iou/test_iou_device.py: Rework test skipping based on presence
   of IOU image rather than environment variable
This commit is contained in:
Daniel Lintott committed 2014-08-08 17:54:30 +01:00
1 parent 9b010d6388
commit 4a4a57e1a3
2 files changed
+14 -5

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
from gns3server.modules.dynamips import Hypervisor
import time
import os
import pytest
def test_is_started(hypervisor):
@@ -37,6 +38,6 @@ def test_stdout():
hypervisor = Hypervisor(dynamips_path, "/tmp", "127.0.0.1", 7200)
hypervisor.start()
# give some time for Dynamips to start
time.sleep(0.01)
time.sleep(0.1)
output = hypervisor.read_stdout()
assert output