Skip to content

Commit abbc9cb

Browse files
committed
modify redis name to valkey in test_valkey.py
1 parent a08cbb5 commit abbc9cb

File tree

1 file changed

+3
-3
lines changed
  • instrumentation/opentelemetry-instrumentation-valkey/tests

1 file changed

+3
-3
lines changed

instrumentation/opentelemetry-instrumentation-valkey/tests/test_valkey.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def test_response_hook(self):
128128
connection = valkey.connection.Connection()
129129
valkey_client.connection = connection
130130

131-
response_attribute_name = "db.redis.response"
131+
response_attribute_name = "db.valkey.response"
132132

133133
def response_hook(span, conn, response):
134134
span.set_attribute(response_attribute_name, response)
@@ -256,7 +256,7 @@ def test_attributes_default(self):
256256
)
257257

258258
def test_attributes_tcp(self):
259-
valkey_client = valkey.Redis.from_url("redis://foo:[email protected]:6380/1")
259+
valkey_client = valkey.Valkey.from_url("valkey://foo:[email protected]:6380/1")
260260

261261
with mock.patch.object(valkey_client, "connection"):
262262
valkey_client.set("key", "value")
@@ -280,7 +280,7 @@ def test_attributes_tcp(self):
280280
)
281281

282282
def test_attributes_unix_socket(self):
283-
valkey_client = valkey.Redis.from_url(
283+
valkey_client = valkey.Valkey.from_url(
284284
"unix://foo@/path/to/socket.sock?db=3&password=bar"
285285
)
286286

0 commit comments

Comments
 (0)