Repository navigation
Fix the Windows unit test step failing on the daemon orphan test - #621
Merged
Merged
Conversation
The orphan test starts a helper that slept for 20 seconds after the test finished. On Windows go test cannot delete the test binary while a copy is running, so the unit tests step exited 1 with 'unlinkat sop-daemon.test.exe: Access is denied' even though every test passed. Shorten the helper to 2 seconds and wait for it in test cleanup. Thanks, Gerard Recinto
Gemini PR ReviewReviewed commit:
This result blocks merge. Push a fix and comment |
Collaborator
Author
|
/gemini dispute
Thanks, |
Collaborator
Author
|
/gemini review |
Gemini PR ReviewReviewed commit:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Sanity (windows-latest) job has been exiting 1 with 'go: unlinkat ...sop-daemon.test.exe: Access is denied' although every test passes. The cause is the orphan test in cmd/sop-daemon: it starts a helper process that sleeps 20 seconds after the test ends, and Windows will not let go test delete the test binary while a copy is running.
This shortens the helper to 2 seconds and waits for it in a t.Cleanup. It passes locally on macOS. I cannot run Windows locally, so the Windows job on this PR is the check.
Thanks,
Gerard Recinto