We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9122817 commit 452e7cfCopy full SHA for 452e7cf
1 file changed
README.md
@@ -18,7 +18,16 @@ defmodule Infra do
18
monkeyscript_finish()
19
end
20
21
+# Include test and monkeyscript networking libraries
22
+use ExUnit.Case
23
+import MonkeyScript.Scripts.Networking
24
25
+# Our custom code to restart the systems
26
+def restart_worker(...) do
27
+ ...
28
+end
29
+
30
+# Our monkey script resiliency tests, in the form of standard unit tests
31
test "can still hit homepage if mysql is down" do
32
block_port(Infra, "app-server", service: "mysql") do
33
assert true == ping(Infra, "app-server")
0 commit comments