This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new 6da9405ff Erlang 25 compatibility - http_uri:parse -> uri_string:parse
6da9405ff is described below
commit 6da9405ff97acae745ae85f3f9ce92484a7722df
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Fri Jun 17 16:47:12 2022 -0400
Erlang 25 compatibility - http_uri:parse -> uri_string:parse
This fixes the replicator eunit failure:
https://github.com/apache/couchdb/pull/4060#issuecomment-1154391783
---
.../test/eunit/couch_replicator_error_reporting_tests.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/couch_replicator/test/eunit/couch_replicator_error_reporting_tests.erl
b/src/couch_replicator/test/eunit/couch_replicator_error_reporting_tests.erl
index 7778bd77d..b0863614c 100644
--- a/src/couch_replicator/test/eunit/couch_replicator_error_reporting_tests.erl
+++ b/src/couch_replicator/test/eunit/couch_replicator_error_reporting_tests.erl
@@ -165,7 +165,7 @@ mock_fail_req(Path, Return) ->
send_req_direct,
fun(W, Url, Headers, Meth, Body, Opts, TOut) ->
Args = [W, Url, Headers, Meth, Body, Opts, TOut],
- {ok, {_, _, _, _, UPath, _}} = http_uri:parse(Url),
+ #{path := UPath} = uri_string:parse(Url),
case lists:suffix(Path, UPath) of
true -> Return;
false -> meck:passthrough(Args)