Remove node argument from start-stop Jepsen functions (#1091)
This commit is contained in:
parent
c501f59a09
commit
bd2ec6374a
@ -14,7 +14,7 @@
|
|||||||
(def mgpid (str mgdir "/memgraph.pid"))
|
(def mgpid (str mgdir "/memgraph.pid"))
|
||||||
|
|
||||||
(defn start-node!
|
(defn start-node!
|
||||||
[test node]
|
[test]
|
||||||
(cu/start-daemon!
|
(cu/start-daemon!
|
||||||
{:logfile mglog
|
{:logfile mglog
|
||||||
:pidfile mgpid
|
:pidfile mgpid
|
||||||
@ -28,7 +28,7 @@
|
|||||||
:--storage-properties-on-edges))
|
:--storage-properties-on-edges))
|
||||||
|
|
||||||
(defn stop-node!
|
(defn stop-node!
|
||||||
[test node]
|
[test]
|
||||||
(cu/stop-daemon! (:local-binary test) mgpid))
|
(cu/stop-daemon! (:local-binary test) mgpid))
|
||||||
|
|
||||||
(defn db
|
(defn db
|
||||||
@ -43,11 +43,11 @@
|
|||||||
(catch Exception e
|
(catch Exception e
|
||||||
(throw (Exception. (str local-binary " is not there.")))))
|
(throw (Exception. (str local-binary " is not there.")))))
|
||||||
(info node "Memgraph binary is there" local-binary)
|
(info node "Memgraph binary is there" local-binary)
|
||||||
(start-node! test node)
|
(start-node! test)
|
||||||
(Thread/sleep 5000))) ;; TODO(gitbuda): The sleep after Jepsen starting Memgraph is for sure questionable.
|
(Thread/sleep 5000))) ;; TODO(gitbuda): The sleep after Jepsen starting Memgraph is for sure questionable.
|
||||||
(teardown! [_ test node]
|
(teardown! [_ test node]
|
||||||
(info node "Tearing down Memgraph")
|
(info node "Tearing down Memgraph")
|
||||||
(stop-node! test node)
|
(stop-node! test)
|
||||||
(c/su
|
(c/su
|
||||||
(c/exec :rm :-rf mgdata)
|
(c/exec :rm :-rf mgdata)
|
||||||
(c/exec :rm :-rf mglog)))
|
(c/exec :rm :-rf mglog)))
|
||||||
|
Loading…
Reference in New Issue
Block a user