diff options
author | Brad Anderson <brad@cloudant.com> | 2010-05-14 14:59:42 -0400 |
---|---|---|
committer | Brad Anderson <brad@cloudant.com> | 2010-05-14 14:59:42 -0400 |
commit | e68c2a65c2227eef1c07c0abbe097fd5aa40413c (patch) | |
tree | 30b9ec29e95e51c9e265b7f4d91193bdd421eb06 /test/mem3_test.erl | |
parent | 4e255d8f327b2bb6c179839db5b8d66383a391c4 (diff) |
removing more of dynomite deps from mem3
Diffstat (limited to 'test/mem3_test.erl')
-rw-r--r-- | test/mem3_test.erl | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/mem3_test.erl b/test/mem3_test.erl index b8622005..01d80eb0 100644 --- a/test/mem3_test.erl +++ b/test/mem3_test.erl @@ -4,6 +4,13 @@ -include("../include/config.hrl"). -include_lib("eunit/include/eunit.hrl"). +%% version 3 of membership state +-record(mem, {header=3, + nodes=[], + clock=[], + args + }). + -define(TEST_NODE_NAME, a). -define(HINT_C1, 365375409332725729550921208179070754913983135744). -define(HINT_C2, 1096126227998177188652763624537212264741949407232). @@ -41,9 +48,9 @@ all_tests_test_() -> test_setup() -> - Config = #config{n=3,r=2,w=2,q=3,directory="/srv/db", - storage_mod="dynomite_couch_storage"}, - {ok, Pid} = mem3:start_link([{test,?TEST_NODE_NAME}, {config, Config}]), + % Config = #config{n=3,r=2,w=2,q=3,directory="/srv/db", + % storage_mod="dynomite_couch_storage"}, + {ok, Pid} = mem3:start_link([{test,?TEST_NODE_NAME}]), Pid. @@ -118,7 +125,7 @@ join_with_wrong_order(_Pid) -> % ?assertEqual([], mem3:parts_for_node(d)), %?debugFmt("~nFullmap: ~p~n", [mem3:fullmap()]), Res = mem3:join(join, [{3, d, []}], c), - ?assertEqual({error,{position_exists,3,c}}, Res), + ?assertEqual({error, <<"position_exists_3">>}, Res), %?debugFmt("~nFullmap: ~p~n", [mem3:fullmap()]), ok. |