Commit Graph

211 Commits

Author SHA1 Message Date
A. Jesse Jiryu Davis
25b1ca89a7 Faster assertReadFromAll 2012-12-28 12:35:44 -05:00
A. Jesse Jiryu Davis
ce6d16f9f2 Improve assertReadFromAll docstring 2012-12-28 12:35:35 -05:00
A. Jesse Jiryu Davis
0226ee8798 Support nested calls to Connection.start/end_request PYTHON-420 2012-11-04 21:53:56 -05:00
A. Jesse Jiryu Davis
d976b4021c Raise ConnectionFailure instead of AutoReconnect if the initial server connection fails PYTHON-396 2012-10-23 07:43:26 -04:00
A. Jesse Jiryu Davis
f275b2291a Implement read preferences for distributing reads among replica set members PYTHON-367
Replace the 'mongo' dict with a Member object everywhere in ReplicaSetConnection.
A handful of commands obey read preferences; most are always sent to primary.
Track a 5-sample moving average of each replica set member's ping time.
Connection detects whether it's connected to primary, secondary, or mongos.
2012-07-25 00:05:06 -04:00
behackett
59439e02b8 Fix testing against mongos. PYTHON-373. 2012-07-13 10:38:04 -07:00
A. Jesse Jiryu Davis
f2cd5c6f2b Slightly refactor threading tests 2012-04-29 21:34:05 -04:00
A. Jesse Jiryu Davis
c9c9eeec21 Refactor pooling tests - nearly all tests are now applied both to thread-based and Gevent-based pools PYTHON-296 2012-04-16 14:10:27 -04:00
A. Jesse Jiryu Davis
43faa30f8d Make socket-reclamation tests more reliable in PyPy and Jython PYTHON-287
Conflicts:

	test/utils.py
2012-03-20 13:23:21 -04:00
A. Jesse Jiryu Davis
62e0c23d67 Don't drop databases unnecessarily during tests, saves about 35% of unittest time PYTHON-320 2012-03-19 12:16:33 -04:00
A. Jesse Jiryu Davis
fa296b1711 Style fixes and import cleanups 2012-02-08 18:21:26 -08:00