mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
added pattern matching to actually make the test fail if riak_core is
not patched.
This commit is contained in:
parent
de3909d8cd
commit
df149dad39
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user