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