# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 2021-07-02 18:53:23
# Node ID 640fdb7fd67bb2bc99d97fd505083d87949ca4e9
# Parent  452795b0b69ad533186cc5eea2a948146a624aa6

test: make sure we hit the SIGPIPE in test-transaction-rollback-on-sigpipe

With a coming change, we might not hit the sig pipe without issue and extra line
of output. We do this early to make the next change clearer.

Differential Revision: https://phab.mercurial-scm.org/D10946

diff --git a/tests/test-transaction-rollback-on-sigpipe.t b/tests/test-transaction-rollback-on-sigpipe.t
--- a/tests/test-transaction-rollback-on-sigpipe.t
+++ b/tests/test-transaction-rollback-on-sigpipe.t
@@ -47,7 +47,8 @@ disconnecting. Then exit nonzero, to for
 
   $ cat >remote/.hg/hgrc <<EOF
   > [hooks]
-  > pretxnchangegroup.break-things=$hook_script
+  > pretxnchangegroup.00-break-things=$hook_script
+  > pretxnchangegroup.01-output-things=echo "some remote output to be forward to the closed pipe"
   > EOF
 
   $ hg --cwd ./remote tip -T '{node|short}\n'