added pattern matching to actually make the test fail if riak_core is

not patched.
This commit is contained in:
Fred Dushin 2016-09-08 12:03:33 -04:00
parent de3909d8cd
commit df149dad39

View File

@ -38,12 +38,12 @@ confirm() ->
ok = rpc:call(Node_B, riak_core_capability, register, [Cap_name, [V2,V1], V1, V1]),
ok = rpc:call(Node_C, riak_core_capability, register, [Cap_name, [V2,V1], V1, V1]),
ok = rt:join_cluster([Node_A,Node_B,Node_C]),
rt:wait_until_ring_converged([Node_A,Node_B,Node_C]),
rt:wait_until_capability(Node_A, Cap_name, V2),
rt:wait_until_capability(Node_B, Cap_name, V2),
rt:wait_until_capability(Node_C, Cap_name, V2),
ok = rt:wait_until_ring_converged([Node_A,Node_B,Node_C]),
ok = rt:wait_until_capability(Node_A, Cap_name, V2),
ok = rt:wait_until_capability(Node_B, Cap_name, V2),
ok = rt:wait_until_capability(Node_C, Cap_name, V2),
rt:stop(Node_B),
rt:start(Node_B),
rt:wait_until_capability(Node_A, Cap_name, V1),
rt:wait_until_capability(Node_C, Cap_name, V1),
ok = rt:wait_until_capability(Node_A, Cap_name, V1),
ok = rt:wait_until_capability(Node_C, Cap_name, V1),
pass.