From patchwork Mon Jan 24 14:46:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D12039: test-http-bad-server: align output by using `;` From: phabricator X-Patchwork-Id: 50367 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 24 Jan 2022 14:46:09 +0000 marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the only message using a `,` instead of `;` and that seems unintentional. I am unifying the message before unigying the code. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12039 AFFECTED FILES tests/test-http-bad-server.t tests/testlib/badserverext.py CHANGE DETAILS To: marmoute, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/tests/testlib/badserverext.py b/tests/testlib/badserverext.py --- a/tests/testlib/badserverext.py +++ b/tests/testlib/badserverext.py @@ -230,7 +230,7 @@ object.__setattr__(self, '_closeafterrecvbytes', remaining) if remaining <= 0: - self._writelog(b'read limit reached, closing socket') + self._writelog(b'read limit reached; closing socket') self._close() # This is the easiest way to abort the current request. diff --git a/tests/test-http-bad-server.t b/tests/test-http-bad-server.t --- a/tests/test-http-bad-server.t +++ b/tests/test-http-bad-server.t @@ -266,7 +266,7 @@ readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) readline(* from *) -> (2) \r\n (glob) read(* from 28) -> (*) cmds=* (glob) - read limit reached, closing socket + read limit reached; closing socket $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob) Traceback (most recent call last): Exception: connection closed after receiving N bytes