From 231c9db1b512b491c0082f503df066daac006027 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 31 May 2016 16:43:21 +0200 Subject: [PATCH] Now that SPOP can be called by scripts use BLPOP on 's' flag test. --- tests/unit/scripting.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/scripting.tcl b/tests/unit/scripting.tcl index 825a73ed..be82e155 100644 --- a/tests/unit/scripting.tcl +++ b/tests/unit/scripting.tcl @@ -142,7 +142,7 @@ start_server {tags {"scripting"}} { test {EVAL - Scripts can't run certain commands} { set e {} - catch {r eval {return redis.pcall('spop','x')} 0} e + catch {r eval {return redis.pcall('blpop','x',0)} 0} e set e } {*not allowed*}