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()
Ejemplo n.º 2
0
 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:
         if self.opman:
             self.opman.join()
     except RuntimeError:
         pass
     close_client(self.primary_conn)
     self.repl_set.stop()
Ejemplo n.º 5
0
 def tearDown(self):
     close_client(self.primary_conn)
     close_client(self.secondary_conn)
     try:
         self.opman.join()
     except RuntimeError:
         # OplogThread may not have been started
         pass
     self.repl_set.stop()
Ejemplo n.º 6
0
 def tearDown(self):
     close_client(self.primary_conn)
     close_client(self.secondary_conn)
     try:
         self.opman.join()
     except RuntimeError:
         # OplogThread may not have been started
         pass
     self.repl_set.stop()
Ejemplo n.º 7
0
    def tearDown(self):
        try:
            self.opman.join()
        except RuntimeError:
            pass  # OplogThread may not have been started

        for db in self.primary_conn.database_names():
            if db != "local":
                self.primary_conn.drop_database(db)
        close_client(self.primary_conn)
        self.repl_set.stop()
    def tearDown(self):
        try:
            self.opman.join()
        except RuntimeError:
            pass                # OplogThread may not have been started

        for db in self.primary_conn.database_names():
            if db != "local":
                self.primary_conn.drop_database(db)
        close_client(self.primary_conn)
        self.repl_set.stop()
Ejemplo n.º 9
0
 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):
     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 tearDownClass(cls):
     close_client(cls.main_connection)
     cls.repl_set.stop()
Ejemplo n.º 12
0
 def tearDownClass(cls):
     close_client(cls.mongo_conn)
     cls.standalone.stop()
 def tearDown(self):
     super(TestOplogManagerSharded, self).tearDown()
     close_client(self.shard1_secondary_conn)
     close_client(self.shard2_secondary_conn)
Ejemplo n.º 14
0
 def tearDownClass(cls):
     cls.primary_conn.drop_database("test")
     close_client(cls.primary_conn)
     cls.repl_set.stop()
Ejemplo n.º 15
0
 def tearDownClass(cls):
     close_client(cls.mongo_conn)
     cls.standalone.stop()
Ejemplo n.º 16
0
 def tearDown(self):
     super(TestOplogManagerSharded, self).tearDown()
     close_client(self.shard1_secondary_conn)
     close_client(self.shard2_secondary_conn)
 def tearDownClass(cls):
     cls.primary_conn.drop_database("test")
     close_client(cls.primary_conn)
     cls.repl_set.stop()
Ejemplo n.º 18
0
 def tearDown(self):
     close_client(self.primary_conn)
     close_client(self.secondary_conn)
     self.repl_set.stop()
 def tearDownClass(cls):
     """Kill the cluster."""
     close_client(cls.conn)
     cls.repl_set.stop()
Ejemplo n.º 20
0
 def tearDownClass(cls):
     close_client(cls.main_connection)
     cls.repl_set.stop()
 def tearDownClass(cls):
     """Kill the cluster."""
     close_client(cls.conn)
     cls.repl_set.stop()
 def tearDown(self):
     close_client(self.primary_conn)
     close_client(self.secondary_conn)
     self.repl_set.stop()