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

Avoid race conditions in tests #550

Merged
merged 2 commits into from Mar 16, 2016
Merged

Avoid race conditions in tests #550

merged 2 commits into from Mar 16, 2016

Conversation

ilmari
Copy link
Contributor

@ilmari ilmari commented Jan 30, 2016

Adds a listen_sock option to HTTP::Server::PSGI and uses this in combination with the new listen option to Test::TCP::test_tcp (see tokuhirom/Test-TCP#48) to avoid race conditions in the tests.

This allows avoiding race conditions by using the 'listen' option to
Test::TCP and passing the open socket to the server.  Use this in
Plack::Test::Server.
@ilmari
Copy link
Contributor Author

ilmari commented Mar 15, 2016

The Test::TCP change that this depends on has now been merged and released, so this could be too.

@miyagawa
Copy link
Member

You should rebuild travis CI test.

miyagawa added a commit that referenced this pull request Mar 16, 2016
 Avoid race conditions in tests
@miyagawa miyagawa merged commit 21da44a into plack:master Mar 16, 2016
@ilmari ilmari deleted the listen branch March 17, 2016 11:48
@ilmari ilmari mentioned this pull request Nov 1, 2016
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.

None yet

2 participants