Skip to content

Commit

Permalink
regression in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed May 3, 2023
1 parent 22cc2d7 commit f484582
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import redis.clients.jedis.BinaryJedisPubSub;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPubSub;
import redis.clients.jedis.exceptions.JedisConnectionException;
import redis.clients.jedis.exceptions.JedisException;
import redis.clients.jedis.util.SafeEncoder;

public class PublishSubscribeCommandsTest extends JedisCommandsTestBase {
Expand Down Expand Up @@ -461,14 +461,14 @@ public void onPMessage(byte[] pattern, byte[] channel, byte[] message) {
jedis.subscribe(pubsub, SafeEncoder.encode("foo"));
}

@Test(expected = JedisConnectionException.class)
@Test(expected = JedisException.class)
public void unsubscribeWhenNotSusbscribed() throws InterruptedException {
JedisPubSub pubsub = new JedisPubSub() {
};
pubsub.unsubscribe();
}

@Test(expected = JedisConnectionException.class)
@Test(expected = JedisException.class)
public void handleClientOutputBufferLimitForSubscribeTooSlow() throws InterruptedException {
final Jedis j = createJedis();
final AtomicBoolean exit = new AtomicBoolean(false);
Expand Down

0 comments on commit f484582

Please sign in to comment.