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

Add TCPServer#sysaccept spec #284

Merged
merged 1 commit into from
Aug 19, 2016
Merged

Add TCPServer#sysaccept spec #284

merged 1 commit into from
Aug 19, 2016

Conversation

etehtsea
Copy link
Contributor

No description provided.

@etehtsea
Copy link
Contributor Author

@eregon somehow I'm breaking other specs, but I don't understand why. Maybe you have some ideas?

thread = Thread.new { @server.sysaccept }
thread.join(0.1).should == nil
ensure
Thread.kill(thread)
Copy link
Member

Choose a reason for hiding this comment

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

Did not know there was the class method kill :)
You should probably join the thread after killing it:

thread.kill
thread.join

Or use the new matcher :)

Copy link
Contributor Author

@etehtsea etehtsea Aug 19, 2016

Choose a reason for hiding this comment

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

I do, but the issue is inside second spec. Because I tried to comment this one out and still see sporadic failures on travisCI

@etehtsea
Copy link
Contributor Author

Updated with new matcher.

@eregon eregon merged commit de38e1b into ruby:master Aug 19, 2016
@eregon
Copy link
Member

eregon commented Aug 19, 2016

Thanks!

@etehtsea etehtsea deleted the tcp-server-sysaccept branch August 19, 2016 09:52
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.

None yet

2 participants