def METHOD_NAME(self):
    """
    This test case tests if scheduler goes into infinite loop
    when following conditions are met.
    - Kill a mom
    - mark the mom's state as free
    - submit an array job
    - check the sched log for "Leaving sched cycle" from the time
      array job was submitted.
    If we are unable to find a log match then scheduler is in
      endless loop and test case has failed.
    """
    self.mom.signal('-KILL')
    attr = {'state': 'free', 'resources_available.ncpus': '2'}
    self.server.manager(MGR_CMD_SET, NODE, attr, self.mom.shortname)
    attr = {'scheduling': 'False'}
    self.server.manager(MGR_CMD_SET, SERVER, attr)
    j1 = Job(TEST_USER)
    j1.set_attributes({'Resource_List.ncpus': '2', ATTR_J: '1-3'})
    j1id = self.server.submit(j1)
    now = time.time()
    attr = {'scheduling': 'True'}
    self.server.manager(MGR_CMD_SET, SERVER, attr)
    self.scheduler.log_match("Leaving Scheduling Cycle",
                             starttime=now,
                             interval=1)
    self.server.delete(j1id)