mikespook/gearman-go — pull request #41 by draxil (2014-06-04 17:11:35+00:00)
Title: Better Work() without Ready() behaviour, now with improved tests!

This one has much better tests. I found all sorts of issues with the previous test, for one thing it had a race condition on the worker actually being ready before the Echo call triggered the handler.

Hopefully this one will run for you without freezing as well! Just be be sure I've rigged the tests with timeouts so that if they fail in future they should do so gracefully instead of freezing.