Closed Bug 1543448 Opened 6 years ago Closed 6 years ago

Fix race condition in vcsreplicator restart tests

Categories

(Developer Services :: Mercurial: hg.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

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.

Depends on: 1543450

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

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: