mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
Merge pull request #765 from basho/bugfix/BTA-172-verify_dt_upgrade
Fix BTA-172.
This commit is contained in:
commit
19ea9a69bb
@ -50,7 +50,7 @@ confirm() ->
|
||||
populate_counters(Node) ->
|
||||
lager:info("Writing counters to ~p", [Node]),
|
||||
rt:wait_for_service(Node, riak_kv),
|
||||
?assertEqual(ok, rt:wait_until_capability(Node, {riak_kv, crdt}, [pncounter])),
|
||||
?assertEqual(ok, rt:wait_until(Node, fun has_counter_capability/1)),
|
||||
|
||||
RHC = rt:httpc(Node),
|
||||
?assertMatch(ok, rhc:counter_incr(RHC, ?COUNTER_BUCKET, <<"httpkey">>, 2)),
|
||||
@ -85,3 +85,7 @@ upgrade(Node, NewVsn) ->
|
||||
rt:upgrade(Node, NewVsn),
|
||||
rt:wait_for_service(Node, riak_kv),
|
||||
ok.
|
||||
|
||||
has_counter_capability(Node) ->
|
||||
Types = rt:capability(Node, {riak_kv, crdt}),
|
||||
is_list(Types) andalso lists:member(pncounter, Types).
|
||||
|
Loading…
Reference in New Issue
Block a user