diff options
author | Dongkeun Lee <3315213+zakaf@users.noreply.github.com> | 2022-12-25 23:18:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-25 16:18:24 +0200 |
commit | d693221e9ac4bdf09cf3538ea38e7d7d2799059b (patch) | |
tree | 2d9f01b24bb54b46486058a932973bbabcfc9005 /tests/test_scripting.py | |
parent | 55298e49caa5d76a7371568d2773e8e245b388a1 (diff) | |
download | redis-py-d693221e9ac4bdf09cf3538ea38e7d7d2799059b.tar.gz |
Allow EVAL_RO and EVALSHA_RO to be routed to read replica (#2494)
* fix typo (Lue -> Lua)
* run eval_ro, evalsha_ro test on redis cluster
* Add eval_ro, evalsha_ro to read only commands
* assert that commands are run in a round robin manner
Co-authored-by: zach.lee <zach.lee@sendbird.com>
Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
Diffstat (limited to 'tests/test_scripting.py')
-rw-r--r-- | tests/test_scripting.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test_scripting.py b/tests/test_scripting.py index bbe845c..b6b5f9f 100644 --- a/tests/test_scripting.py +++ b/tests/test_scripting.py @@ -67,7 +67,6 @@ class TestScripting: @skip_if_server_version_lt("7.0.0") @skip_if_redis_enterprise() - @pytest.mark.onlynoncluster def test_eval_ro(self, r): r.set("a", "b") assert r.eval_ro("return redis.call('GET', KEYS[1])", 1, "a") == b"b" @@ -157,7 +156,6 @@ class TestScripting: @skip_if_server_version_lt("7.0.0") @skip_if_redis_enterprise() - @pytest.mark.onlynoncluster def test_evalsha_ro(self, r): r.set("a", "b") get_sha = r.script_load("return redis.call('GET', KEYS[1])") |