From 78b2e92c8c2bc22c17a7670437dcd6852768690d Mon Sep 17 00:00:00 2001 From: Brad Anderson Date: Thu, 18 Mar 2010 23:56:13 -0400 Subject: some docs, and handling the joining of the first node (which is given a list of nodes for the cluster) --- test/mem3_test.erl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'test') 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. -- cgit v1.2.3