@@ -7,19 +7,19 @@ class TestCluster
7
7
module Mixin
8
8
def setup
9
9
@captured_commands = ::Middlewares ::CommandCapture ::CommandBuffer . new
10
- @redirection_count = ::Middlewares ::RedirectionCount ::Counter . new
10
+ @redirect_count = ::Middlewares ::RedirectCount ::Counter . new
11
11
@client = new_test_client
12
12
@client . call ( 'FLUSHDB' )
13
13
wait_for_replication
14
14
@captured_commands . clear
15
- @redirection_count . clear
15
+ @redirect_count . clear
16
16
end
17
17
18
18
def teardown
19
19
@client &.call ( 'FLUSHDB' )
20
20
wait_for_replication
21
21
@client &.close
22
- flunk ( @redirection_count . get ) unless @redirection_count . zero?
22
+ flunk ( @redirect_count . get ) unless @redirect_count . zero?
23
23
end
24
24
25
25
def test_config
@@ -850,10 +850,10 @@ def test_only_reshards_own_errors
850
850
client2 = new_test_client (
851
851
middlewares : [
852
852
::RedisClient ::Cluster ::ErrorIdentification ::Middleware ,
853
- ::Middlewares ::RedirectionEmulation
853
+ ::Middlewares ::RedirectFake
854
854
] ,
855
855
custom : {
856
- redirect : ::Middlewares ::RedirectionEmulation ::Setting . new (
856
+ redirect_fake : ::Middlewares ::RedirectFake ::Setting . new (
857
857
slot : slot , to : broken_primary_key , command : %w[ SET testkey client2 ]
858
858
)
859
859
}
@@ -925,8 +925,8 @@ class PrimaryOnly < TestingWrapper
925
925
include Mixin
926
926
927
927
def new_test_client (
928
- custom : { captured_commands : @captured_commands , redirection_count : @redirection_count } ,
929
- middlewares : [ ::Middlewares ::CommandCapture , ::Middlewares ::RedirectionCount ] ,
928
+ custom : { captured_commands : @captured_commands , redirect_count : @redirect_count } ,
929
+ middlewares : [ ::Middlewares ::CommandCapture , ::Middlewares ::RedirectCount ] ,
930
930
**opts
931
931
)
932
932
config = ::RedisClient ::ClusterConfig . new (
@@ -946,8 +946,8 @@ class ScaleReadRandom < TestingWrapper
946
946
include Mixin
947
947
948
948
def new_test_client (
949
- custom : { captured_commands : @captured_commands , redirection_count : @redirection_count } ,
950
- middlewares : [ ::Middlewares ::CommandCapture , ::Middlewares ::RedirectionCount ] ,
949
+ custom : { captured_commands : @captured_commands , redirect_count : @redirect_count } ,
950
+ middlewares : [ ::Middlewares ::CommandCapture , ::Middlewares ::RedirectCount ] ,
951
951
**opts
952
952
)
953
953
config = ::RedisClient ::ClusterConfig . new (
@@ -969,8 +969,8 @@ class ScaleReadRandomWithPrimary < TestingWrapper
969
969
include Mixin
970
970
971
971
def new_test_client (
972
- custom : { captured_commands : @captured_commands , redirection_count : @redirection_count } ,
973
- middlewares : [ ::Middlewares ::CommandCapture , ::Middlewares ::RedirectionCount ] ,
972
+ custom : { captured_commands : @captured_commands , redirect_count : @redirect_count } ,
973
+ middlewares : [ ::Middlewares ::CommandCapture , ::Middlewares ::RedirectCount ] ,
974
974
**opts
975
975
)
976
976
config = ::RedisClient ::ClusterConfig . new (
@@ -992,8 +992,8 @@ class ScaleReadLatency < TestingWrapper
992
992
include Mixin
993
993
994
994
def new_test_client (
995
- custom : { captured_commands : @captured_commands , redirection_count : @redirection_count } ,
996
- middlewares : [ ::Middlewares ::CommandCapture , ::Middlewares ::RedirectionCount ] ,
995
+ custom : { captured_commands : @captured_commands , redirect_count : @redirect_count } ,
996
+ middlewares : [ ::Middlewares ::CommandCapture , ::Middlewares ::RedirectCount ] ,
997
997
**opts
998
998
)
999
999
config = ::RedisClient ::ClusterConfig . new (
@@ -1015,8 +1015,8 @@ class Pooled < TestingWrapper
1015
1015
include Mixin
1016
1016
1017
1017
def new_test_client (
1018
- custom : { captured_commands : @captured_commands , redirection_count : @redirection_count } ,
1019
- middlewares : [ ::Middlewares ::CommandCapture , ::Middlewares ::RedirectionCount ] ,
1018
+ custom : { captured_commands : @captured_commands , redirect_count : @redirect_count } ,
1019
+ middlewares : [ ::Middlewares ::CommandCapture , ::Middlewares ::RedirectCount ] ,
1020
1020
**opts
1021
1021
)
1022
1022
config = ::RedisClient ::ClusterConfig . new (
0 commit comments