-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
Need to find a way to run these tests that doesn't require db.eval().
FAIL: test_pool (test.test_pooling.TestPoolSocketSharingThreads)
FAIL: test_pool_request (test.test_pooling.TestPoolSocketSharingThreads)
FAIL: test_pool (test.test_pooling_gevent.TestPoolSocketSharingGevent)
FAIL: test_pool_request (test.test_pooling_gevent.TestPoolSocketSharingGevent)
Here's an example of the traceback:
test_pool_request (test.test_pooling_gevent.TestPoolSocketSharingGevent) ... Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/gevent/greenlet.py", line 390, in run result = self._run(*self.args, **self.kwargs) File "/home/behackett/work/mongo-python-driver/test/test_pooling_base.py", line 814, in find_slow db.command('eval', fn, nolock=True)) File "/home/behackett/work/mongo-python-driver/pymongo/database.py", line 350, in command result = self["$cmd"].find_one(command, **extra_opts) File "/home/behackett/work/mongo-python-driver/pymongo/collection.py", line 514, in find_one for result in self.find(spec_or_id, *args, **kwargs).limit(-1): File "/home/behackett/work/mongo-python-driver/pymongo/cursor.py", line 749, in next if len(self.__data) or self._refresh(): File "/home/behackett/work/mongo-python-driver/pymongo/cursor.py", line 700, in _refresh self.__uuid_subtype)) File "/home/behackett/work/mongo-python-driver/pymongo/cursor.py", line 657, in __send_message self.__tz_aware) File "/home/behackett/work/mongo-python-driver/pymongo/helpers.py", line 102, in _unpack_response error_object["$err"]) OperationFailure: database error: unrecognized command: eval <Greenlet at 0x7f480403e0f0: find_slow> failed with OperationFailure