Skip to content

Isolate DiffRunnerTests from the machine's queue owner - #761

Open
SimonCropp wants to merge 1 commit into
mainfrom
isolate-diffrunner-tests-from-tray
Open

Isolate DiffRunnerTests from the machine's queue owner#761
SimonCropp wants to merge 1 commit into
mainfrom
isolate-diffrunner-tests-from-tray

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Launching sends a real pending move to whatever owns the queue. On a developer box that is the tray, started at login, so accepting the move overwrote the checked in fixtures and discarding it deleted them - DiffRunner.file1.txt had been destroyed that way. A discard also kills the diff tool process the tests assert on.

Cut both routes in the module initializer: no tray, and a viewer port nothing is listening on. A failed move send is the end of the road in PendingFiles.AddMove, and only a delete launches a viewer, which nothing here adds. The piper send stays covered by DiffRunnerCanKillTest, which drives a tray under test control.

Also run against copies in a temp directory, so the fixtures cannot be touched even if that isolation is later reset. One directory per class, since IsRunning matches the exact command string and WaitForRunning wants the same paths across tests; copied per test, since a discard deletes the temp file and its directory.

Launching sends a real pending move to whatever owns the queue. On a
developer box that is the tray, started at login, so accepting the move
overwrote the checked in fixtures and discarding it deleted them -
DiffRunner.file1.txt had been destroyed that way. A discard also kills
the diff tool process the tests assert on.

Cut both routes in the module initializer: no tray, and a viewer port
nothing is listening on. A failed move send is the end of the road in
PendingFiles.AddMove, and only a delete launches a viewer, which nothing
here adds. The piper send stays covered by DiffRunnerCanKillTest, which
drives a tray under test control.

Also run against copies in a temp directory, so the fixtures cannot be
touched even if that isolation is later reset. One directory per class,
since IsRunning matches the exact command string and WaitForRunning
wants the same paths across tests; copied per test, since a discard
deletes the temp file and its directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant