SCRIPT KILL command fixed
This commit is contained in:
@@ -3047,7 +3047,8 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
return client.getBinaryBulkReply();
|
return client.getBinaryBulkReply();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void scriptKill(){
|
public byte[] scriptKill(){
|
||||||
client.scriptKill();
|
client.scriptKill();
|
||||||
|
return client.getBinaryBulkReply();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,6 +120,11 @@ public class ScriptingCommandsTest extends JedisCommandTestBase {
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Test
|
@Test
|
||||||
public void scriptKill() {
|
public void scriptKill() {
|
||||||
|
try {
|
||||||
jedis.scriptKill();
|
jedis.scriptKill();
|
||||||
}
|
}
|
||||||
|
catch(JedisDataException e) {
|
||||||
|
assertEquals("ERR No scripts in execution right now.", e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user