D12039: test-http-bad-server: align output by using `;`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Jan 24 14:46:09 UTC 2022


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

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



To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel


More information about the Mercurial-devel mailing list