Skip to content

Commit c54e64b

Browse files
committed
Remove uninstrument & instrument from test setup
The Redis test that performs the tests with the default options, doesn't need to uninstrument and then instrument the instrumentor. This commit removes the unnecessary setup code. The setup code is already present at the top of the file.
1 parent f62d6e3 commit c54e64b

File tree

1 file changed

+0
-5
lines changed
  • instrumentation/opentelemetry-instrumentation-redis/tests

1 file changed

+0
-5
lines changed

instrumentation/opentelemetry-instrumentation-redis/tests/test_redis.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ def test_query_sanitizer_enabled(self):
153153
connection = redis.connection.Connection()
154154
redis_client.connection = connection
155155

156-
RedisInstrumentor().uninstrument()
157-
RedisInstrumentor().instrument(
158-
tracer_provider=self.tracer_provider
159-
)
160-
161156
with mock.patch.object(redis_client, "connection"):
162157
redis_client.set("key", "value")
163158

0 commit comments

Comments
 (0)