flynn/flynn-controller — pull request #16 by lmars (2014-05-22 15:51:23+00:00)
Title: Scheduler tests v2

Because syncCluster is just called at the start of watchFormations, I have just renamed and expanded the single test to first check the cluster sync, then test streaming formation changes.

As you can see in the TODO at the end of the test, removing jobs is not reflected in the fakeCluster host.Jobs as there is no link between hosts and hostClients, so I have left that final check commented for now, thoughts welcome on that one.