func (s *MigrationSuite) createMigAndWatchReports(c *gc.C, st *state.State) ( state.ModelMigration, statetesting.NotifyWatcherC, ) { mig, err := st.CreateMigration(s.stdSpec) c.Assert(err, jc.ErrorIsNil) w, err := mig.WatchMinionReports() c.Assert(err, jc.ErrorIsNil) s.AddCleanup(func(*gc.C) { statetesting.AssertStop(c, w) }) wc := statetesting.NewNotifyWatcherC(c, st, w) return mig, wc }