Permalink
Browse files

Merge pull request #237 from basho/dip_pb

use rt:pbc to read the new pb app.config format
  • Loading branch information...
Dave Parfitt
Dave Parfitt committed Mar 20, 2013
2 parents 0fdabcb + 823c65a commit 8989890b10271371c02139b19dd2a54e0c8f4cb1
Showing with 1 addition and 5 deletions.
  1. +1 −5 tests/replication2.erl
View
@@ -438,11 +438,7 @@ replication([AFirst|_] = ANodes, [BFirst|_] = BNodes, Connected) ->
fin.
pb_write_during_shutdown(Target, BSecond, TestBucket) ->
- {ok, Port} = rpc:call(Target, application, get_env, [riak_api, pb_port]),
-
- lager:info("Connecting to pb socket ~p:~p on ~p", ["127.0.0.1", Port,
- Target]),
- {ok, PBSock} = riakc_pb_socket:start("127.0.0.1", Port),
+ PBSock = rt:pbc(Target),
%% do the stop in the background while we're writing keys
spawn(fun() ->

0 comments on commit 8989890

Please sign in to comment.