blob: dde6228f34225ee0228132e6b54987049c175c6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
https://github.com/mongodb/mongo-python-driver/commit/519733457fb456f64b49ae66ffa6a401e1e72f24
diff --git a/test/test_pooling_base.py b/test/test_pooling_base.py
index 2190f38..d396b56 100644
--- a/test/test_pooling_base.py
+++ b/test/test_pooling_base.py
@@ -700,6 +700,10 @@ def leak_request():
g.start()
g.join(1)
self.assertTrue(g.ready(), "Greenlet is hung")
+
+ # In Gevent after 0.13.8, join() returns before the Greenlet.link
+ # callback fires. Give it a moment to reclaim the socket.
+ gevent.sleep(0.1)
else:
lock = thread.allocate_lock()
lock.acquire()
|