def tearDown(self): try: self.opman1.join() except RuntimeError: pass # thread may not have been started try: self.opman2.join() except RuntimeError: pass # thread may not have been started self.mongos_conn.close() self.shard1_conn.close() self.shard2_conn.close() self.shard1_secondary_conn.close() self.shard2_secondary_conn.close() kill_all()
def tearDownClass(cls): """ Kills cluster instance """ kill_mongo_proc(HOSTNAME, 30000) kill_all()
def tearDownClass(cls): """ Tears down connector """ cls.connector.join() kill_all()
def tearDown(self): kill_all()
def tearDownClass(cls): """ Kills cluster instance """ kill_all()