This is an archive of the discontinued Mercurial Phabricator instance.

tests: fix timer scaling in wait-on-file
ClosedPublic

Authored by joerg.sonnenberger on May 7 2020, 5:40 PM.

Details

Summary

When using the default test timeouts, wait-on-file would not wait for $n
seconds, but $n/100 seconds. This resulted in easy timeouts on even
moderately busy fast machines. Fix the scaling to apply in all cases.
Adjust the stepping slightly to be nicer to systems with the historic
100Hz time base to ensure that the scheduler actually switches to a
different process and gives them time to work.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

marmoute accepted this revision.May 7 2020, 5:46 PM
marmoute added a subscriber: marmoute.

woops

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.