]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use correct attribute type
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 30 Mar 2023 21:21:05 +0000 (15:21 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 30 Mar 2023 21:21:05 +0000 (15:21 -0600)
src/tests/modules/redis/cluster_node_fail.unlang

index 07ffff8040809a2afa766d383dca315ccf9f2112..9a7867f8379c28cb82768745a571f7e2ba69c7f8 100644 (file)
@@ -12,7 +12,7 @@ if (!("%(redis:SET b 'boom')" == 'OK')) {
 &Tmp-String-0 := `/bin/sleep 0.1`
 
 #  Note the current master
-&Tmp-Integer-0 := %(redis_node:b 0)
+&Tmp-String-1 := %(redis_node:b 0)
 
 #  Cause one of the redis cluster nodes to SEGV
 if ("%(redis:@%(redis_node:b 0) DEBUG SEGFAULT)" != '') {
@@ -26,7 +26,7 @@ if (!("%(redis:@%(redis_node:b 1) CLUSTER FAILOVER TAKEOVER)" == 'OK')) {
 
 #  Allow time for the takeover to propagate to other nodes
 foreach &control.Tmp-Integer-0 {
-       if (%(redis_node:b 0) != &Tmp-Integer-0) {
+       if (%(redis_node:b 0) != &Tmp-String-1) {
                break
        }
        &Tmp-String-0 := `/bin/sleep 0.5`