chg: scale the timeout in test with the rest stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 08 Dec 2022 15:13:17 +0100
branchstable
changeset 49784 e45590649888
parent 49783 3bbf1ad850f0
child 49785 fa955e3f6aee
chg: scale the timeout in test with the rest This should avoid some flakiness where the logs reports server shutting down.
tests/test-chg.t
--- a/tests/test-chg.t	Sun Dec 11 16:46:29 2022 +0400
+++ b/tests/test-chg.t	Thu Dec 08 15:13:17 2022 +0100
@@ -1,5 +1,11 @@
 #require chg
 
+Scale the timeout for the chg-server to the test timeout scaling.
+This is done to reduce the flakiness of this test on heavy load.
+
+  $ CHGTIMEOUT=`expr $HGTEST_TIMEOUT / 6`
+  $ export CHGTIMEOUT
+
   $ mkdir log
   $ cp $HGRCPATH $HGRCPATH.unconfigured
   $ cat <<'EOF' >> $HGRCPATH