prevent non-deterministic failures in ensemble_remove_node2

Add a wait_untiL_stable call right before the last read from the root
ensemble.
This commit is contained in:
Andrew J. Stone 2014-04-23 16:11:07 -04:00
parent 0cb1bd4357
commit eb9bc44c66

View File

@ -83,7 +83,7 @@ confirm() ->
Val2 = rt:pbc_read(PBC, Bucket, Key),
?assertEqual(element(1, Val2), riakc_obj),
ok = ensemble_util:wait_until_stable(Node, NVal),
lager:info("Read value from the root ensemble"),
{ok, _Obj} = riak_ensemble_client:kget(Node, root, testerooni, 1000),
Members3 = rpc:call(Node, riak_ensemble_manager, get_members, [root]),