Skip to content

Commit

Permalink
Merge branch 'main' into avara1986/fastapi_leak
Browse files Browse the repository at this point in the history
  • Loading branch information
avara1986 committed Sep 27, 2024
2 parents 8f58aef + 10a31be commit 734424f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/contrib/pymongo/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
from ..config import MONGO_CONFIG


if pymongo.version_tuple >= (4, 9):
from pymongo.synchronous.server import Server
else:
from pymongo.server import Server


def test_normalize_filter():
# ensure we can properly normalize queries FIXME[matt] move to the agent
cases = [
Expand Down Expand Up @@ -713,7 +719,7 @@ def setUp(self):
super(TestPymongoSocketTracing, self).setUp()
patch()
# Override server pin's tracer with our dummy tracer
Pin.override(pymongo.server.Server, tracer=self.tracer)
Pin.override(Server, tracer=self.tracer)
# maxPoolSize controls the number of sockets that the client can instantiate
# and choose from to perform classic operations. For the sake of our tests,
# let's limit this number to 1
Expand Down

0 comments on commit 734424f

Please sign in to comment.