@@ -42,6 +42,7 @@ def set_get(client, key, value):
42
42
return client .get (key )
43
43
44
44
@pytest .mark .skipif (HIREDIS_AVAILABLE , reason = "PythonParser only" )
45
+ @pytest .mark .onlynoncluster
45
46
class TestCache :
46
47
@pytest .mark .parametrize ("r" , [
47
48
{"cache" : TTLCache (128 , 300 ), "use_cache" : True , "single_connection_client" : True },
@@ -69,6 +70,7 @@ def test_get_from_given_cache(self, r, r2):
69
70
{"use_cache" : True , "cache_eviction" : EvictionPolicy .LFU , "cache_size" : 128 },
70
71
{"use_cache" : True , "cache_eviction" : EvictionPolicy .RANDOM , "cache_size" : 128 },
71
72
], ids = ["TTL" , "LRU" , "LFU" , "RANDOM" ], indirect = True )
73
+ @pytest .mark .onlynoncluster
72
74
def test_get_from_custom_cache (self , request , r , r2 ):
73
75
cache_class = CacheClass [request .node .callspec .id ]
74
76
cache = r .get_cache ()
@@ -367,7 +369,6 @@ def test_get_from_cache(self, r, r2):
367
369
{"use_cache" : True , "cache_eviction" : EvictionPolicy .LFU , "cache_size" : 128 },
368
370
{"use_cache" : True , "cache_eviction" : EvictionPolicy .RANDOM , "cache_size" : 128 },
369
371
], ids = ["TTL" , "LRU" , "LFU" , "RANDOM" ], indirect = True )
370
- @pytest .mark .onlycluster
371
372
def test_get_from_custom_cache (self , request , r , r2 ):
372
373
cache_class = CacheClass [request .node .callspec .id ]
373
374
cache = r .nodes_manager .get_node_from_slot (12000 ).redis_connection .get_cache ()
0 commit comments