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:54 UTC
[46/52] [abbrv] incubator-predictionio git commit: Increase
eventserver await time in tests
Increase eventserver await time in tests
Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/0b99a11a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/0b99a11a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/0b99a11a
Branch: refs/heads/develop
Commit: 0b99a11a2f0fde901a053134e73d9654b471a2c3
Parents: 8209e45
Author: Marcin Ziemi\u0144ski <zi...@gmail.com>
Authored: Fri Aug 5 10:09:28 2016 -0700
Committer: Marcin Ziemi\u0144ski <zi...@gmail.com>
Committed: Fri Aug 5 10:09:28 2016 -0700
----------------------------------------------------------------------
testing/pio_tests/scenarios/eventserver_test.py | 2 +-
testing/pio_tests/tests.py | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0b99a11a/testing/pio_tests/scenarios/eventserver_test.py
----------------------------------------------------------------------
diff --git a/testing/pio_tests/scenarios/eventserver_test.py b/testing/pio_tests/scenarios/eventserver_test.py
index 2cd3d87..8c243d2 100644
--- a/testing/pio_tests/scenarios/eventserver_test.py
+++ b/testing/pio_tests/scenarios/eventserver_test.py
@@ -34,7 +34,7 @@ class EventserverTest(BaseTestCase):
self.app = AppEngine(self.test_context, app_context)
def runTest(self):
- self.log.info("Eventserver is alive and running")
+ self.log.info("Check if Eventserver is alive and running")
r = requests.get(self.eventserver_url())
self.assertDictEqual(r.json(), {"status": "alive"})
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/0b99a11a/testing/pio_tests/tests.py
----------------------------------------------------------------------
diff --git a/testing/pio_tests/tests.py b/testing/pio_tests/tests.py
index df8ed77..33d9940 100755
--- a/testing/pio_tests/tests.py
+++ b/testing/pio_tests/tests.py
@@ -66,9 +66,12 @@ if __name__ == "__main__":
tests = tests_dict.values()
# Actual tests execution
+ es_wait_time = 25
+ logger.info("Starting eventserver and waiting {}s for it to initialize".format(
+ es_wait_time))
event_server_process = srun_bg('pio eventserver --ip {} --port {}'
.format(test_context.es_ip, test_context.es_port))
- time.sleep(10)
+ time.sleep(es_wait_time)
result = XMLTestRunner(verbosity=2, output='test-reports').run(
unittest.TestSuite(tests))
event_server_process.kill()