Skip to content

Commit 5343aaa

Browse files
fix cache tests
1 parent 90b8f92 commit 5343aaa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/integrations/django/test_cache_module.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -961,15 +961,15 @@ def test_cache_spans_get_many(
961961

962962
assert spans[2]["attributes"]["sentry.op"] == "cache.get"
963963
assert spans[2]["name"] == f"S{id}, S{id + 1}"
964-
assert not spans[0]["attributes"]["cache.hit"]
964+
assert not spans[2]["attributes"]["cache.hit"]
965965

966966
assert spans[0]["attributes"]["sentry.op"] == "cache.get"
967967
assert spans[0]["name"] == f"S{id}"
968-
assert not spans[1]["attributes"]["cache.hit"]
968+
assert not spans[0]["attributes"]["cache.hit"]
969969

970970
assert spans[1]["attributes"]["sentry.op"] == "cache.get"
971971
assert spans[1]["name"] == f"S{id + 1}"
972-
assert not spans[2]["attributes"]["cache.hit"]
972+
assert not spans[1]["attributes"]["cache.hit"]
973973

974974
assert spans[3]["attributes"]["sentry.op"] == "cache.put"
975975
assert spans[3]["name"] == f"S{id}"

0 commit comments

Comments
 (0)