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

use server.start and server.stop to end sunspot_solr after finishing … #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rocket-turtle
Copy link

…the tests #30

#30

@rocket-turtle
Copy link
Author

Hey @manlycode,
I fixed the tests, anything else I can do to get this merged?

STDERR.reopen("/dev/null")
STDOUT.reopen("/dev/null")
server.run
server.start
Copy link
Contributor

@manlycode manlycode Feb 12, 2018

Choose a reason for hiding this comment

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

@rocket-turtle Why start rather than run?

Copy link
Author

Choose a reason for hiding this comment

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

Yes sunspot manages all the pid file handling and the forking when we use start and stop.
The only downside I see is that you can only start one test sunspot server because they use all the same pid file. But I don't know if it is possible to run multiple instances at all.

We could also do something like this:
justinko/sunspot-rails-tester@680a5d9

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.

2 participants