testdata3 := "3-%randstr('aaaaaaaa')"
# Hashes to Redis cluster node master 1 (1)
-if (%redis(SET, b, %{testdata1}) == 'OK') {
+if (%redis('SET', 'b', %{testdata1}) == 'OK') {
test_pass
} else {
test_fail
#
# Force a remap as the slaves don't show up in the cluster immediately
#
- if (%redis.remap(%{redisserver}:30001) == 'success') {
+ if (%redis.remap("%{redisserver}:30001") == 'success') {
# Hashes to Redis cluster node master 0 (1)
if ((%redis('SET', 'b', %{data1}) == 'OK') && \
(%redis('SET', 'c', %{data2}) == 'OK') && \
# so we now need to figure out which slave each of those keys
# ended up on.
#
- if ((%redis("-@%redis.node(b, 1)", 'GET', 'b') == data1) && \
- (%redis("-@%redis.node(c, 1)", 'GET', 'c') == data2) && \
- (%redis("-@%redis.node(d, 1)", 'GET', 'd') == data3)) {
+ if ((%redis("-@%redis.node('b', 1)", 'GET', 'b') == data1) && \
+ (%redis("-@%redis.node('c', 1)", 'GET', 'c') == data2) && \
+ (%redis("-@%redis.node('d', 1)", 'GET', 'd') == data3)) {
break
}
}
test_fail
}
-if (!(%redis.concat_args_keys(1, foo, bar, baz) == 'foo,bar,baz')) {
+if (!(%redis.concat_args_keys(1, 'foo', 'bar', 'baz') == 'foo,bar,baz')) {
test_fail
}
# Concat with an empty argument. This is a regression test
-if (!(%redis.concat_args_keys(1, foo, %{dummy_string}, baz) == 'foo,,baz')) {
+if (!(%redis.concat_args_keys(1, 'foo', %{dummy_string}, 'baz') == 'foo,,baz')) {
test_fail
}