Fix TestShipOfTheseus when use_greenlets=True.

This commit is contained in:
A. Jesse Jiryu Davis 2013-11-28 11:36:49 -05:00
parent 80290241a4
commit caf83b4e02

View File

@ -1028,7 +1028,9 @@ class TestShipOfTheseus(HATestCase):
self.seed, self.name = res
def test_ship_of_theseus(self):
c = MongoReplicaSetClient(self.seed, replicaSet=self.name)
c = MongoReplicaSetClient(
self.seed, replicaSet=self.name, use_greenlets=use_greenlets)
db = c.pymongo_test
db.test.insert({}, w=len(c.secondaries) + 1)
find_one = db.test.find_one