Skip to content

Commit

Permalink
Must shutdown h2o instance before h2o.init() tests in R and Python
Browse files Browse the repository at this point in the history
  • Loading branch information
navdeep-G committed Jan 20, 2016
1 parent 02f88f9 commit f57ef30
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
15 changes: 10 additions & 5 deletions h2o-py/tests/testdir_jira/h2o.init_test_HOQE-16.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@

#Below is the test that will be implemented:

#Import h2o and load up h2o.init()
import h2o

#Call h2o.init() just in case instance is not running
h2o.init(strict_version_check=False)

#First we will shutdown any instance of h2o
h2o.shutdown(prompt = False)

#Load up h2o.init()

h2o.init(strict_version_check=False)

#Get H2OConnection() class
conn = h2o.H2OConnection(ip="localhost", port=54321, start_h2o=True, enable_assertions=True,
license=None, nthreads=-1, max_mem_size=None, min_mem_size=None, ice_root=None,
strict_version_check=False, proxy=None, https=False, insecure=False, username=None,
password=None, max_mem_size_GB=None, min_mem_size_GB=None)
conn = h2o.H2OConnection(ip="localhost", port=54321, start_h2o=True)

#Get if cluster is up (True) or not (False)
cluster_up = conn.cluster_is_up(conn)
Expand Down
9 changes: 8 additions & 1 deletion h2o-r/tests/testdir_jira/h2o.init_test_HOQE-16.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@

#Below is the test that will be implemented:

#Load up h2o and h2o.init()
library(h2o)

#Call h2o.init() just in case instance is not running
h2o.init()

#First, we will shutdown any instance of h2o
h2o.shutdown(prompt = FALSE)

#Load up h2o and h2o.init()
h2o.init()

#Way to check if cluster is up and also get status:
Expand Down

0 comments on commit f57ef30

Please sign in to comment.