Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnixDomainSocketTest: await domain socket binding before connecting #2129

Merged
merged 2 commits into from
Feb 4, 2020

Conversation

raboof
Copy link
Member

@raboof raboof commented Feb 4, 2020

References #2128

The old test didn't do what it said it did: binding to a file that does not
exist yet is perfectly fine, but this test would fail on typical systems
because the user would not have permissions to write to /. Changed it to
a non-existent directory so it'll fail even when you're allowed to write
to /.

To test the original intent of the test we could create a file/directory that
we don't have permissions to write to, but that's for another PR.
Copy link
Member

@seglo seglo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@seglo seglo merged commit 961298e into master Feb 4, 2020
@seglo seglo deleted the awaitDomainSocketBindingBeforeConnecting branch February 4, 2020 14:41
raboof added a commit that referenced this pull request Feb 4, 2020
This would have made #2129 more obvious, checking the stream
result is good practice so we should lead by example.
raboof added a commit that referenced this pull request Feb 5, 2020
This would have made #2129 more obvious, checking the stream
result is good practice so we should lead by example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants