We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bc119c commit 1c130c6Copy full SHA for 1c130c6
tests/cluster/run.tcl
@@ -5,6 +5,7 @@
5
cd tests/cluster
6
source cluster.tcl
7
source ../instances.tcl
8
+source ../../support/cluster.tcl ; # Redis Cluster client.
9
10
set ::instances_count 20 ; # How many instances we use at max.
11
tests/cluster/tests/00-base.tcl
@@ -94,3 +94,15 @@ test "Nodes should report cluster_state is ok now" {
94
}
95
96
97
+
98
+test "It is possible to write and read from the cluster" {
99
+ set port [get_instance_attrib redis 0 port]
100
+ set cluster [redis_cluster 127.0.0.1:$port]
101
+ for {set j 0} {$j < 100} {incr j} {
102
+ $cluster set key.$j $j
103
+ }
104
105
+ assert {[$cluster get key.$j] eq $j}
106
107
+ $cluster close
108
+}
0 commit comments