From eb9bc44c66d7e842736381f0017aea1feec34d74 Mon Sep 17 00:00:00 2001 From: "Andrew J. Stone" Date: Wed, 23 Apr 2014 16:11:07 -0400 Subject: [PATCH] prevent non-deterministic failures in ensemble_remove_node2 Add a wait_untiL_stable call right before the last read from the root ensemble. --- tests/ensemble_remove_node2.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ensemble_remove_node2.erl b/tests/ensemble_remove_node2.erl index 894d3f29..35fe00f3 100644 --- a/tests/ensemble_remove_node2.erl +++ b/tests/ensemble_remove_node2.erl @@ -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]),