semaperepelitsa / spork-minitest

MiniTest runner for Spork
MIT License
13 stars 25 forks source link

Make `testdrb` work by giving DRb.start_service an arg #10

Closed rking closed 11 years ago

rking commented 11 years ago

This brings the runner in line with: https://github.com/dchelimsky/rspec/blob/master/lib/spec/runner/drb_command_line.rb#L17

Without this patch, spork-minitest tries to connect to a nonexistent host (and on my system it times out due to OpenDNS pretending all hosts exist.)

rking commented 11 years ago

See Issue #7

rking commented 11 years ago

Can you please accept or comment on this?

It's completely not-working for me without this.

semaperepelitsa commented 11 years ago

Sorry, I was waiting you to answer my question in #7. I think DRuby should bind to the right host by default. Can you explain your setup? If it is normal we should report that issue to DRuby devs and I will pull your workaround.

rking commented 11 years ago

Oh snap. So sorry.

semaperepelitsa commented 11 years ago

Can you change your hostname to localhost or point your current hostname to your computer 127.0.0.1? You may have troubles with other programs in future, so that seems like a better solution for me. What do you think?

rking commented 11 years ago

Oh man. Apparently I got the bright idea a while back to start doing this in /etc/hosts:

127.0.0.1 localhost
localhost myhostname

When what it demands is:

127.0.0.1 localhost
127.0.0.1 myhostname

After that edit, the rubygems spork-minitest now works for me.

So, I still have to wonder, though, the benefit of spork-minitest's start_service call over RSpec's?

Under what circumstances would someone expect it to look up hostname to something other than 127.0.0.1 and then listen to that address?

semaperepelitsa commented 11 years ago

I'm glad you figured it out :-)

Honestly, I don't know much about hostnames, but I would stick to defaults in that case. Let me know if you find out though, maybe the default start_service is not intended for our usage.