diff options
author | Brad Anderson <brad@cloudant.com> | 2010-03-18 23:56:13 -0400 |
---|---|---|
committer | Brad Anderson <brad@cloudant.com> | 2010-05-09 22:56:22 -0400 |
commit | 78b2e92c8c2bc22c17a7670437dcd6852768690d (patch) | |
tree | e46cff812f2fb82437f2865f751b03297a9ff7ff /test | |
parent | 8429ee374325a6a2c9779c5001c143ce4b35b1c6 (diff) |
some docs, and handling the joining of the first node (which is given a list of nodes for the cluster)
Diffstat (limited to 'test')
-rw-r--r-- | test/mem3_test.erl | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/mem3_test.erl b/test/mem3_test.erl index 6286936e..ae6dcaa5 100644 --- a/test/mem3_test.erl +++ b/test/mem3_test.erl @@ -14,7 +14,8 @@ all_tests_test_() -> fun(Pid) -> {with, Pid, [ - fun init/1 + fun init/1, + fun join_first/1 ]} end} ] @@ -33,6 +34,11 @@ test_teardown(Pid) -> %% TESTS init(_Pid) -> - State = #mem{test=Test} = mem3:state(), - ?debugFmt("~nState: ~p~n", [State]), + #mem{test=Test} = mem3:state(), ?assertEqual(true, Test). + + +join_first(_Pid) -> + mem3:join(first, [{1, a, []}, {2, b, []}]), + ?debugFmt("~nState: ~p~n", [mem3:state()]), + ok. |