jhthorsen/mojo-redis2 — pull request #2 by kanatohodets (2014-08-24 06:52:37+00:00)
Title: Waitpid tweak to fix hanging tests

The waitpid was causing tests to hang forever for me (perl 5.20.0, OSX 10.9.4, redis-server 2.8.13) every 3-5 runs -- 'make test' could not finish successfully.

On my system without these changes:

`perl -E 'system("perl t/basic-operations.t") for 1 .. 10;'`

consistently hangs after 1-3 iterations. with the changes it completes successfully. All other tests (including `t/start-server.t`) still pass successfully.

I don't know if this is the right solution, but I figured I'd fire this off to give a sense of where the issue is. No harm, no foul if you decide on something different, I just want the tests to pass so I can take a shot at a Redis backend for Minion :)

I dropped the timeout value on `IO::Socket::INET` to speed up `t/start-server`'s first test (with the bad executable), since now it attempts to connect many times before giving up.