[Updated] D12055: test-http-bad-server: move on test from bytes-count to pattern

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Tue Jan 25 09:20:28 UTC 2022


Closed by commit rHG8a452efcce3c: test-http-bad-server: move on test from bytes-count to pattern (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12055?vs=31879&id=31931

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D12055/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D12055

AFFECTED FILES
  tests/test-http-bad-server.t

CHANGE DETAILS

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
@@ -563,7 +563,9 @@
 Server stops before it sends transfer encoding
 ----------------------------------------------
 
-  $ hg serve --config badserver.close-after-send-bytes=954 -p $HGPORT -d --pid-file=hg.pid -E error.log
+  $ hg serve \
+  > --config badserver.close-after-send-patterns="Transfer-Encoding: chunke" \
+  > -p $HGPORT -d --pid-file=hg.pid -E error.log
   $ cat hg.pid > $DAEMON_PIDS
 
   $ hg clone http://localhost:$HGPORT/ clone
@@ -584,7 +586,7 @@
 
 #else
   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -7
-  write(41 from 41) -> (25) Content-Type: application/mercurial-0.2\r\n
+  write(41) -> Content-Type: application/mercurial-0.2\r\n
   write(25 from 28) -> (0) Transfer-Encoding: chunke
   write limit reached; closing socket
   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)



To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220125/9b671060/attachment-0002.html>


More information about the Mercurial-patches mailing list