def tearDown(self):
     try:
         self.opman.join()
     except RuntimeError:
         pass                # OplogThread may not have been started
     self.primary_conn.drop_database("test")
     close_client(self.primary_conn)
     self.repl_set.stop()
 def tearDown(self):
     try:
         if self.opman:
             self.opman.join()
     except RuntimeError:
         pass
     close_client(self.primary_conn)
     self.repl_set.stop()
 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
     close_client(self.mongos_conn)
     close_client(self.shard1_conn)
     close_client(self.shard2_conn)
     close_client(self.shard1_secondary_conn)
     close_client(self.shard2_secondary_conn)
     self.cluster.stop()
 def tearDown(self):
     close_client(self.primary_conn)
     close_client(self.secondary_conn)
     self.repl_set.stop()
 def tearDownClass(cls):
     close_client(cls.main_connection)
     cls.repl_set.stop()
예제 #6
0
 def tearDownClass(cls):
     close_client(cls.mongo_conn)
     cls.standalone.stop()
예제 #7
0
 def tearDownClass(cls):
     """Kill the cluster."""
     close_client(cls.conn)
     cls.repl_set.stop()