diff options
author | Nick Vatamaniuc <vatamane@gmail.com> | 2022-06-17 16:47:12 -0400 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2022-06-18 12:39:19 -0400 |
commit | 6da9405ff97acae745ae85f3f9ce92484a7722df (patch) | |
tree | 8c9cd7b22a88bc54ed497ada86760b2d85aa9e08 | |
parent | cb80c634a64d3886251f279de78eede1bda12061 (diff) | |
download | couchdb-6da9405ff97acae745ae85f3f9ce92484a7722df.tar.gz |
Erlang 25 compatibility - http_uri:parse -> uri_string:parse
This fixes the replicator eunit failure:
https://github.com/apache/couchdb/pull/4060#issuecomment-1154391783
-rw-r--r-- | src/couch_replicator/test/eunit/couch_replicator_error_reporting_tests.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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) |