nickva commented on code in PR #4151:
URL: https://github.com/apache/couchdb/pull/4151#discussion_r950377784
##########
src/couch_replicator/test/eunit/couch_replicator_retain_stats_between_job_runs.erl:
##########
@@ -254,10 +216,9 @@ replicate(Source, Target) ->
{ok, Pid, Rep#rep.id}.
scheduler_jobs() ->
- Addr = config:get("chttpd", "bind_address", "127.0.0.1"),
- Port = mochiweb_socket_server:get(chttpd, port),
- Url = lists:flatten(io_lib:format("http://~s:~b/_scheduler/jobs", [Addr,
Port])),
- {ok, 200, _, Body} = test_request:get(Url, []),
+ ClusterUrl = couch_replicator_test_helper:cluster_url(),
Review Comment:
I think I can just re-use this suggestion for cluster_db_url as the logic
the same, it just didn't flexibly handle the "/" case before.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]