* fix bug: test expects JedisConnectionException

** I have mistaken while verifying seeing Exception's message
* remove huge print messages
This commit is contained in:
임정택
2013-10-16 19:42:29 +09:00
parent e9506298f8
commit 52bb245203

View File

@@ -529,8 +529,7 @@ public class PublishSubscribeCommandsTest extends JedisCommandTestBase {
pubsub.unsubscribe();
}
//@Test(expected = JedisConnectionException.class)
@Test
@Test(expected = JedisConnectionException.class)
public void handleClientOutputBufferLimitForSubscribeTooSlow() throws InterruptedException {
final Thread t = new Thread(new Runnable() {
public void run() {
@@ -561,7 +560,7 @@ public class PublishSubscribeCommandsTest extends JedisCommandTestBase {
public void onMessage(String channel, String message) {
try {
// wait 0.5 secs to slow down subscribe and client-output-buffer exceed
System.out.println("channel - " + channel + " / message - " + message);
//System.out.println("channel - " + channel + " / message - " + message);
Thread.sleep(500);
} catch (Exception e) {
try {