Skip to content

test: fix failure when run with SSH_AUTH_SOCK#59

Open
mvo5 wants to merge 1 commit into
systemd:mainfrom
mvo5:fix-ssh-auth-agent-hang
Open

test: fix failure when run with SSH_AUTH_SOCK#59
mvo5 wants to merge 1 commit into
systemd:mainfrom
mvo5:fix-ssh-auth-agent-hang

Conversation

@mvo5

@mvo5 mvo5 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

The tests will hang currently when run on a developer desktop and there is a SSH_AUTH_SOCK env set. Because the code will try to construct an sshauth header when it finds ssh credentials it will use this env even when the tests are not meant to use the sshauth path. This commit fixes this by unseting SSH_AUTH_SOCK during the tests.

While doing this a test-helper got extracted to remove some of the duplication we had before.

The tests will hang currently when run on a developer desktop and
there is a `SSH_AUTH_SOCK` env set. Because the code will try
to construct an sshauth header when it finds ssh credentials
it will use this env even when the tests are not meant to use
the sshauth path. This commit fixes this by unseting SSH_AUTH_SOCK
during the tests.

While doing this a test-helper got extracted to remove some of
the duplication we had before.
@mvo5 mvo5 requested a review from keszybz June 24, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant