You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by do...@apache.org on 2016/08/09 21:43:33 UTC

[25/52] [abbrv] incubator-predictionio git commit: Add time delay after launching eventserver before executing test suite

Add time delay after launching eventserver before executing test suite


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/92634f0c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/92634f0c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/92634f0c

Branch: refs/heads/develop
Commit: 92634f0c64ce40ede4b20b2a4ad62d90e72cd7d4
Parents: c2f4a14
Author: Chan Lee <ch...@gmail.com>
Authored: Fri Jul 29 15:21:05 2016 -0700
Committer: Marcin Ziemi\u0144ski <zi...@gmail.com>
Committed: Wed Aug 3 14:41:18 2016 -0700

----------------------------------------------------------------------
 tests.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/92634f0c/tests.py
----------------------------------------------------------------------
diff --git a/tests.py b/tests.py
index 547c259..87fea64 100755
--- a/tests.py
+++ b/tests.py
@@ -4,6 +4,7 @@ import unittest
 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
@@ -64,6 +65,7 @@ if __name__ == "__main__":
     # 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()