Fix race condition in vcsreplicator restart tests
Categories
(Developer Services :: Mercurial: hg.mozilla.org, defect)
Tracking
(Not tracked)
People
(Reporter: lars, Assigned: lars)
References
Details
Attachments
(1 file)
It has been discovered that the vcsreplicator tests include a shutdown test with race conditions that vary the result depending on the speed of the machine doing the testing. The test "test-consumer-daemon-restart" expects test output in a certain order: faster and slower machines may not produce the same order.
Account for the race conditions so that successful tests are not dependent on machine speed.
| Assignee | ||
Comment 1•6 years ago
|
||
Machines of differing speeds produce the output of the test,
test-consumer-daemon-restart.t, in a differing orders. This
change synchronizes the output by adding a consumer
with "--wait-for-no-lag". This causes a pause that allows the
tests that run subsequently to always have the same order
of expected output.
The former order of output has been corrected for this
synchronization and a redundant line about shutdown
has been removed (see Bug 1543450)
Pushed by lars@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/7951e7b5e7bf
vcsreplicator: update test, correcting order of expected output r=sheehan
Description
•