Skip to content

Commit

Permalink
Fixed clientKill because of changed clientList output
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Jun 21, 2014
1 parent dae9f0b commit b07a2f0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
Expand Down

0 comments on commit b07a2f0

Please sign in to comment.