HomePhabricator

test: simplify test-amend.t to avoid race condition

Authored by marmoute.

Description

test: simplify test-amend.t to avoid race condition

Insted on relying on sleep, we could simply have the editor do the file change.
This remove the reliance on "sleep" and avoid test failing on heavy load
machine.

To test this, I reverted the code change in 5558e3437872 and the test started
failing again.

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

Details

Committed
marmouteFeb 1 2020, 3:14 AM
Differential Revision
D8065: test: simplify test-amend.t to avoid race condition
Parents
rHG9659ec161644: test: document test-copy-move-merge.t
Branches
Unknown
Tags
Unknown