diff tests/test-ssh-proto.t @ 42896:7e19b640c53e

sshserver: flush stream after command dispatch I am not sure why this is not working as expected, but without this client might not see some important output. Without this patch moving some output at transaction closing time makes it disapear for ssh client in various sitaution.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 08 Sep 2019 01:02:34 +0200
parents a0886a4d6dce
children edc8504bc26b
line wrap: on
line diff
--- a/tests/test-ssh-proto.t	Sun Sep 08 00:11:20 2019 +0200
+++ b/tests/test-ssh-proto.t	Sun Sep 08 01:02:34 2019 +0200
@@ -104,6 +104,7 @@
   $ hg debugserve --sshstdio --logiofd 1 << EOF
   > hello
   > EOF
+  e> flush() -> None
   o> write(4) -> 4:
   o>     440\n
   o> write(440) -> 440:
@@ -119,6 +120,7 @@
   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
 
   $ cat $TESTTMP/io
+  e> flush() -> None
   o> write(4) -> 4:
   o>     440\n
   o> write(440) -> 440: