Skip to content

Commit 19c8f35

Browse files
committed
Removed test case that makes no sense
1 parent 21778be commit 19c8f35

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

redis/connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,6 @@ def check_health(self):
767767
self._conn.check_health()
768768

769769
def send_packed_command(self, command, check_health=True):
770-
self._process_pending_invalidations()
771770
# TODO: Investigate if it's possible to unpack command or extract keys from packed command
772771
self._conn.send_packed_command(command)
773772

tests/test_cache.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -130,21 +130,6 @@ def test_get_from_cache_multithreaded(self, r):
130130
assert cache.get(("GET", "foo")) == b"baz"
131131
assert cache.get(("GET", "bar")) == b"bar"
132132

133-
@pytest.mark.parametrize("r", [
134-
{"cache": TTLCache(128, 300), "use_cache": True, "single_connection_client": False},
135-
], indirect=True)
136-
@pytest.mark.onlynoncluster
137-
def test_prevent_race_condition_from_multiple_threads(self, r, cache):
138-
cache = r.get_cache()
139-
140-
# Set initial key.
141-
assert r.set("foo", "bar")
142-
143-
# Running concurrent commands over two threads to override same key.
144-
threading.Thread(target=r.get("foo")).start()
145-
threading.Thread(target=set_get, args=(r, "foo", "baz")).start()
146-
assert cache.get(("GET", "foo")) == b"bar"
147-
148133
@pytest.mark.parametrize("r", [
149134
{"cache": TTLCache(128, 300), "use_cache": True, "single_connection_client": False},
150135
], indirect=True)

0 commit comments

Comments
 (0)