# HG changeset patch # User Pierre-Yves David # Date 1587070563 -7200 # Node ID 23dd43d94f505a24c105ac878e4b6acd5bf32d9f # Parent 036f6f7e19e15059f8274593d6b86cff30b7bca7 wait-on-file: adjust the timer counter The wait performed in increment of 0.01 second, but the timer was expressed in second. So we did not wait 20s, we waited 0.2 second. Internally we adjust the counter to be expressed in centisecond. This prevent some flackyness in the test. Differential Revision: https://phab.mercurial-scm.org/D8453 diff -r 036f6f7e19e1 -r 23dd43d94f50 tests/testlib/wait-on-file --- a/tests/testlib/wait-on-file Sun Apr 19 17:33:08 2020 -0700 +++ b/tests/testlib/wait-on-file Thu Apr 16 22:56:03 2020 +0200 @@ -13,7 +13,7 @@ # if the test timeout have been extended, explicitly extend the provided timer if [ "$HGTEST_TIMEOUT_DEFAULT" -lt "$HGTEST_TIMEOUT" ]; then - timer=$(( ($timer * $HGTEST_TIMEOUT) / $HGTEST_TIMEOUT_DEFAULT )) + timer=$(( ( 100 * $timer * $HGTEST_TIMEOUT) / $HGTEST_TIMEOUT_DEFAULT )) fi wait_on="$2"