@@ -541,13 +541,14 @@ def hiredis_used?
541
541
class PrimaryOnly < TestingWrapper
542
542
include Mixin
543
543
544
- def new_test_client ( capture_buffer : @captured_commands )
544
+ def new_test_client ( capture_buffer : @captured_commands , ** opts )
545
545
config = ::RedisClient ::ClusterConfig . new (
546
546
nodes : TEST_NODE_URIS ,
547
547
fixed_hostname : TEST_FIXED_HOSTNAME ,
548
548
middlewares : [ CommandCaptureMiddleware ] ,
549
549
custom : { captured_commands : capture_buffer } ,
550
- **TEST_GENERIC_OPTIONS
550
+ **TEST_GENERIC_OPTIONS ,
551
+ **opts
551
552
)
552
553
::RedisClient ::Cluster . new ( config )
553
554
end
@@ -556,15 +557,16 @@ def new_test_client(capture_buffer: @captured_commands)
556
557
class ScaleReadRandom < TestingWrapper
557
558
include Mixin
558
559
559
- def new_test_client ( capture_buffer : @captured_commands )
560
+ def new_test_client ( capture_buffer : @captured_commands , ** opts )
560
561
config = ::RedisClient ::ClusterConfig . new (
561
562
nodes : TEST_NODE_URIS ,
562
563
replica : true ,
563
564
replica_affinity : :random ,
564
565
fixed_hostname : TEST_FIXED_HOSTNAME ,
565
566
middlewares : [ CommandCaptureMiddleware ] ,
566
567
custom : { captured_commands : capture_buffer } ,
567
- **TEST_GENERIC_OPTIONS
568
+ **TEST_GENERIC_OPTIONS ,
569
+ **opts
568
570
)
569
571
::RedisClient ::Cluster . new ( config )
570
572
end
@@ -573,15 +575,16 @@ def new_test_client(capture_buffer: @captured_commands)
573
575
class ScaleReadRandomWithPrimary < TestingWrapper
574
576
include Mixin
575
577
576
- def new_test_client ( capture_buffer : @captured_commands )
578
+ def new_test_client ( capture_buffer : @captured_commands , ** opts )
577
579
config = ::RedisClient ::ClusterConfig . new (
578
580
nodes : TEST_NODE_URIS ,
579
581
replica : true ,
580
582
replica_affinity : :random_with_primary ,
581
583
fixed_hostname : TEST_FIXED_HOSTNAME ,
582
584
middlewares : [ CommandCaptureMiddleware ] ,
583
585
custom : { captured_commands : capture_buffer } ,
584
- **TEST_GENERIC_OPTIONS
586
+ **TEST_GENERIC_OPTIONS ,
587
+ **opts
585
588
)
586
589
::RedisClient ::Cluster . new ( config )
587
590
end
@@ -590,15 +593,16 @@ def new_test_client(capture_buffer: @captured_commands)
590
593
class ScaleReadLatency < TestingWrapper
591
594
include Mixin
592
595
593
- def new_test_client ( capture_buffer : @captured_commands )
596
+ def new_test_client ( capture_buffer : @captured_commands , ** opts )
594
597
config = ::RedisClient ::ClusterConfig . new (
595
598
nodes : TEST_NODE_URIS ,
596
599
replica : true ,
597
600
replica_affinity : :latency ,
598
601
fixed_hostname : TEST_FIXED_HOSTNAME ,
599
602
middlewares : [ CommandCaptureMiddleware ] ,
600
603
custom : { captured_commands : capture_buffer } ,
601
- **TEST_GENERIC_OPTIONS
604
+ **TEST_GENERIC_OPTIONS ,
605
+ **opts
602
606
)
603
607
::RedisClient ::Cluster . new ( config )
604
608
end
@@ -607,13 +611,14 @@ def new_test_client(capture_buffer: @captured_commands)
607
611
class Pooled < TestingWrapper
608
612
include Mixin
609
613
610
- def new_test_client ( capture_buffer : @captured_commands )
614
+ def new_test_client ( capture_buffer : @captured_commands , ** opts )
611
615
config = ::RedisClient ::ClusterConfig . new (
612
616
nodes : TEST_NODE_URIS ,
613
617
fixed_hostname : TEST_FIXED_HOSTNAME ,
614
618
middlewares : [ CommandCaptureMiddleware ] ,
615
619
custom : { captured_commands : capture_buffer } ,
616
- **TEST_GENERIC_OPTIONS
620
+ **TEST_GENERIC_OPTIONS ,
621
+ **opts
617
622
)
618
623
::RedisClient ::Cluster . new ( config , pool : { timeout : TEST_TIMEOUT_SEC , size : 2 } )
619
624
end
0 commit comments