func isMigrationActive(c *gc.C, st *state.State) bool { isActive, err := st.IsModelMigrationActive() c.Assert(err, jc.ErrorIsNil) return isActive }