mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-07 00:55:21 +00:00
Merge pull request #96 from basho/fix-wait-for-service-only-for-node
Fix wait for service and use in listkeys
This commit is contained in:
commit
1ce5baaec5
@ -468,7 +468,7 @@ wait_until_no_pending_changes(Nodes) ->
|
||||
|
||||
wait_for_service(Node, Service) ->
|
||||
F = fun(N) ->
|
||||
Services = rpc:call(N, riak_core_node_watcher, services, []),
|
||||
Services = rpc:call(N, riak_core_node_watcher, services, [N]),
|
||||
lists:member(Service, Services)
|
||||
end,
|
||||
?assertEqual(ok, wait_until(Node, F)),
|
||||
|
@ -63,7 +63,8 @@ confirm() ->
|
||||
|
||||
lager:info("Starting Node ~p", [Prev]),
|
||||
rt:start(Prev),
|
||||
rt:wait_until_pingable(Prev),
|
||||
lager:info("Waiting for riak_kv service to be ready in ~p", [Prev]),
|
||||
rt:wait_for_service(Prev, riak_kv),
|
||||
|
||||
lager:info("Check keys and buckets"),
|
||||
check_it_all(Nodes -- [Node]),
|
||||
|
Loading…
Reference in New Issue
Block a user