519
519
func (s *UnitSuite) TestCannotShortCircuitDestroyWithSubordinates(c *gc.C) {
520
520
// A unit with subordinates is just set to Dying.
521
_, err := s.State.AddService("logging", s.AddTestingCharm(c, "logging"))
521
s.AddTestingService(c, "logging", s.AddTestingCharm(c, "logging"))
523
522
eps, err := s.State.InferEndpoints([]string{"logging", "wordpress"})
525
524
rel, err := s.State.AddRelation(eps...)