This is an automated email from the ASF dual-hosted git repository. ronny pushed a commit to branch fix-parse_max_age_test in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 0f5673bc5320b0b6b8c14b32af6bc7e36b79e30d Author: Ronny Berndt <[email protected]> AuthorDate: Tue Aug 16 12:16:51 2022 +0200 Fix parse_max_age_test_() test after upgrading to mochiweb v3.1.0 After upgrading to mochiweb v3.1.0, whitespaces (incl. newline) are trimmed from the header field values. This commit adds more tests and changing the expected behavior of parsing the header fields. --- src/couch_replicator/src/couch_replicator_auth_session.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/couch_replicator/src/couch_replicator_auth_session.erl b/src/couch_replicator/src/couch_replicator_auth_session.erl index 392f954ab..38fd09b46 100644 --- a/src/couch_replicator/src/couch_replicator_auth_session.erl +++ b/src/couch_replicator/src/couch_replicator_auth_session.erl @@ -705,7 +705,10 @@ parse_max_age_test_() -> {"-10", undefined}, {"\ufeff", undefined}, {"*", undefined}, - {"\n1", undefined}, + {"\n1", 1}, + {"1\n", 1}, + {"\t\n 1 \t\n", 1}, + {"", undefined}, {"1", 1}, {"1 1", undefined}, {"2", 2},
