(add-test-env-peers! {:keys [peer-group peers] :as component} n-peers)
Add peers to an OnyxTestEnv component
Add peers to an OnyxTestEnv component
(feedback-exception! peer-client-config job-id)
(feedback-exception! peer-client-config job-id log)
Feeds an exception that killed a job back to a client. Blocks until the job is complete.
Feeds an exception that killed a job back to a client. Blocks until the job is complete.
(validate-enough-peers! test-env job)
Checks that the test environment will start enough peers to start the job. Do not use this validation function in production as it does not check for the number of peers running over a cluster, and the number of peers that has joined is subject to change as nodes come online and go offline.
Checks that the test environment will start enough peers to start the job. Do not use this validation function in production as it does not check for the number of peers running over a cluster, and the number of peers that has joined is subject to change as nodes come online and go offline.
(with-test-env [symbol-name [n-peers env-config peer-config]] & body)
Start a test env in a way that shuts down after body is completed. Useful for running tests that can be killed, and re-run without bouncing the repl.
Start a test env in a way that shuts down after body is completed. Useful for running tests that can be killed, and re-run without bouncing the repl.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close