tests/test-http-bad-server.t
changeset 48624 8a452efcce3c
parent 48623 38028f3ef80c
child 48625 fd7c578ddfd3
--- a/tests/test-http-bad-server.t	Sun Jan 23 20:24:35 2022 +0100
+++ b/tests/test-http-bad-server.t	Fri Jan 21 16:07:04 2022 +0100
@@ -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)