summaryrefslogtreecommitdiff
path: root/test/mem2_code_change.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/mem2_code_change.erl')
-rw-r--r--test/mem2_code_change.erl12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/mem2_code_change.erl b/test/mem2_code_change.erl
new file mode 100644
index 00000000..3b0c73fb
--- /dev/null
+++ b/test/mem2_code_change.erl
@@ -0,0 +1,12 @@
+-module(mem2_code_change).
+
+-export([run/0]).
+
+run() ->
+ Pid = whereis(membership),
+ OldVsn = "0.7.1-cloudant",
+ Extra = "",
+
+ sys:suspend(Pid),
+ sys:change_code(Pid, membership2, OldVsn, Extra),
+ sys:resume(Pid).