Skip to content

Commit bcc56b8

Browse files
committed
more quote arguments
1 parent a729e0a commit bcc56b8

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/tests/modules/redis/cluster_key.unlang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ testdata2 := "2-%randstr('aaaaaaaa')"
1919
testdata3 := "3-%randstr('aaaaaaaa')"
2020

2121
# Hashes to Redis cluster node master 1 (1)
22-
if (%redis(SET, b, %{testdata1}) == 'OK') {
22+
if (%redis('SET', 'b', %{testdata1}) == 'OK') {
2323
test_pass
2424
} else {
2525
test_fail

src/tests/modules/redis/cluster_reset.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ foreach i (%range(20)) {
5353
#
5454
# Force a remap as the slaves don't show up in the cluster immediately
5555
#
56-
if (%redis.remap(%{redisserver}:30001) == 'success') {
56+
if (%redis.remap("%{redisserver}:30001") == 'success') {
5757
# Hashes to Redis cluster node master 0 (1)
5858
if ((%redis('SET', 'b', %{data1}) == 'OK') && \
5959
(%redis('SET', 'c', %{data2}) == 'OK') && \
@@ -63,9 +63,9 @@ foreach i (%range(20)) {
6363
# so we now need to figure out which slave each of those keys
6464
# ended up on.
6565
#
66-
if ((%redis("-@%redis.node(b, 1)", 'GET', 'b') == data1) && \
67-
(%redis("-@%redis.node(c, 1)", 'GET', 'c') == data2) && \
68-
(%redis("-@%redis.node(d, 1)", 'GET', 'd') == data3)) {
66+
if ((%redis("-@%redis.node('b', 1)", 'GET', 'b') == data1) && \
67+
(%redis("-@%redis.node('c', 1)", 'GET', 'c') == data2) && \
68+
(%redis("-@%redis.node('d', 1)", 'GET', 'd') == data3)) {
6969
break
7070
}
7171
}

src/tests/modules/redis/functions.unlang

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ if (!(%redis.hello_world(0, %{dummy_string}) == 'hello world')) {
2020
test_fail
2121
}
2222

23-
if (!(%redis.concat_args_keys(1, foo, bar, baz) == 'foo,bar,baz')) {
23+
if (!(%redis.concat_args_keys(1, 'foo', 'bar', 'baz') == 'foo,bar,baz')) {
2424
test_fail
2525
}
2626

2727
# Concat with an empty argument. This is a regression test
28-
if (!(%redis.concat_args_keys(1, foo, %{dummy_string}, baz) == 'foo,,baz')) {
28+
if (!(%redis.concat_args_keys(1, 'foo', %{dummy_string}, 'baz') == 'foo,,baz')) {
2929
test_fail
3030
}
3131

0 commit comments

Comments
 (0)