Skip to content

Commit 689abc6

Browse files
committed
fix more tests
1 parent 88fa7d1 commit 689abc6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ddtrace/contrib/internal/django/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def cursor(django, pin, func, instance, args, kwargs):
148148
tags = {"django.db.vendor": vendor, "django.db.alias": alias}
149149
tags.update(getattr(conn, "_datadog_tags", {}))
150150

151-
pin = Pin(service, tags=tags, tracer=pin.tracer)
151+
pin = Pin(service, tags=tags)
152152
pin._tracer = pin.tracer
153153

154154
cursor = func(*args, **kwargs)

tests/contrib/dbapi/test_dbapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def test_cfg_service(self):
211211
cursor = self.cursor
212212
tracer = self.tracer
213213
cursor.rowcount = 123
214-
pin = Pin("my_service", tags={"pin1": "value_pin1"})
214+
pin = Pin(tags={"pin1": "value_pin1"})
215215
pin._tracer = tracer
216216
cfg = IntegrationConfig(Config(), "db-test", service="cfg-service")
217217
traced_cursor = TracedCursor(cursor, pin, cfg)
@@ -243,7 +243,7 @@ def test_default_service_cfg(self):
243243
cursor = self.cursor
244244
tracer = self.tracer
245245
cursor.rowcount = 123
246-
pin = Pin("my_service", tags={"pin1": "value_pin1"})
246+
pin = Pin(tags={"pin1": "value_pin1"})
247247
pin._tracer = tracer
248248
cfg = IntegrationConfig(Config(), "db-test", _default_service="default-svc")
249249
traced_cursor = TracedCursor(cursor, pin, cfg)

tests/contrib/pylibmc/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_incr_decr_ot(self):
109109
def test_clone(self):
110110
# ensure cloned connections are traced as well.
111111
client, tracer = self.get_client()
112-
cloned = client._clone()
112+
cloned = client.clone()
113113
start = time.time()
114114
cloned.get("a")
115115
end = time.time()

0 commit comments

Comments
 (0)