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

Refactor: Split socket_spec.cr into separate files #6700

Conversation

straight-shoota
Copy link
Member

This PR splits the large monolithic socket_spec.cr into separate files for the individual components. This makes it easier to follow the specific component specs in their own context and improves overall readability by segregating individual features.

This is the first in a series of PR's to improve the Socket API.

end

describe ".unix" do
it "creates a unix socket" do
Copy link
Contributor

Choose a reason for hiding this comment

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

why this landed to address_spec.cr ?

Copy link
Contributor

Choose a reason for hiding this comment

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

after looking at the rest, it looks like you forgot to remove these specs from this file, ?

Copy link
Member Author

@straight-shoota straight-shoota Sep 11, 2018

Choose a reason for hiding this comment

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

Darn, looks like something went awry during rebase. These specs are supposed to be only in spec/std/socket/socket_spec.cr. I'll fix it.

end
end

it ".accept" do
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@asterite
Copy link
Member

All CIs failed with this:

  1) Socket .accept
bind: Address already in use (Errno)
  from src/socket.cr:73:15 in 'bind'
  ...

@straight-shoota straight-shoota force-pushed the jm/refactor/socket-specs-spearate-files branch from be83d8b to 3422a1b Compare September 11, 2018 20:38
@straight-shoota
Copy link
Member Author

@RX14 yay, the issue with Unix socket path limitation with MacOS's temp dir is back: https://circleci.com/gh/crystal-lang/crystal/12013?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

@straight-shoota straight-shoota force-pushed the jm/refactor/socket-specs-spearate-files branch from f1fef04 to 3331d34 Compare September 11, 2018 22:00
@straight-shoota straight-shoota force-pushed the jm/refactor/socket-specs-spearate-files branch from 3331d34 to bb45203 Compare September 12, 2018 08:08
@ysbaddaden ysbaddaden merged commit 60c4f4d into crystal-lang:master Sep 12, 2018
@RX14 RX14 added this to the 0.27.0 milestone Sep 12, 2018
@straight-shoota straight-shoota deleted the jm/refactor/socket-specs-spearate-files branch September 12, 2018 16:41
ezrast pushed a commit to ezrast/crystal that referenced this pull request Oct 2, 2018
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.

6 participants