From b07a2f084248f79b4a2794a1ec2441a359511b75 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Sat, 21 Jun 2014 17:40:41 +0200 Subject: [PATCH] Fixed clientKill because of changed clientList output --- .../src/test/java/com/lambdaworks/redis/ServerCommandTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lettuce/src/test/java/com/lambdaworks/redis/ServerCommandTest.java b/lettuce/src/test/java/com/lambdaworks/redis/ServerCommandTest.java index 8c532b34ca..4e42e0a0e1 100644 --- a/lettuce/src/test/java/com/lambdaworks/redis/ServerCommandTest.java +++ b/lettuce/src/test/java/com/lambdaworks/redis/ServerCommandTest.java @@ -48,11 +48,10 @@ public void clientPause() throws Exception { @Test public void clientKill() throws Exception { - Pattern p = Pattern.compile("addr=([^ ]+)"); + Pattern p = Pattern.compile(".*addr=([^ ]+).*"); String clients = redis.clientList(); Matcher m = p.matcher(clients); - log.info("Client List: " + clients); assertTrue(m.lookingAt()); assertEquals("OK", redis.clientKill(m.group(1))); }