flynn/flynn-controller — pull request #37 by lmars (2014-07-07 23:09:46+00:00)
Title: Publish watchHost as started after it has called StreamEvents

This fixes a race where the tests believe `watchHost` is ready to receive events so send it some events, but in fact the `watchHost` goroutine has not yet called `StreamEvents`, so the event from the tests goes nowhere, and `watchHost` just hangs once it actually starts waiting for events.