Skip to content

Commit

Permalink
Add time delay after launching eventserver before executing test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
chanlee514 authored and Marcin Ziemiński committed Aug 3, 2016
1 parent c2f4a14 commit 92634f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import argparse
import xmlrunner
import logging
import time
import pio_tests.globals as globals
from utils import srun_bg
from pio_tests.integration import TestContext
Expand Down Expand Up @@ -64,6 +65,7 @@ def get_tests(test_context):
# Actual tests execution
event_server_process = srun_bg('pio eventserver --ip {} --port {}'
.format(test_context.es_ip, test_context.es_port))
time.sleep(5)
result = xmlrunner.XMLTestRunner(verbosity=2, output='test-reports').run(unittest.TestSuite(tests))
event_server_process.kill()

Expand Down

0 comments on commit 92634f0

Please sign in to comment.