129130131132133134135136137138139
@Override public void onPSubscribe(String pattern, int subscribedChannels) { count++; if (count == 3) { Jedis otherJedis = createJedis(); Long numPatterns = otherJedis.pubsubNumPat(); assertEquals(new Long(2l), numPatterns); punsubscribe(); } }