Merge pull request #1903 from bagerard/mongodb_32

Fixed tests to allow support of MongoDB 3.2 + Drop Mongo2.4 from CI
This commit is contained in:
erdenezul
2018-10-01 10:37:12 +08:00
committed by GitHub
8 changed files with 126 additions and 95 deletions

View File

@@ -182,8 +182,10 @@ class query_counter(object):
self._ignored_query = {
'ns':
{'$ne': '%s.system.indexes' % self.db.name},
'op':
{'$ne': 'killcursors'}
'op': # MONGODB < 3.2
{'$ne': 'killcursors'},
'command.killCursors': # MONGODB >= 3.2
{'$exists': False}
}
def _turn_on_profiling(self):