Skip to content

Commit

Permalink
Fixed timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Jun 10, 2014
1 parent 9a1aa59 commit 25577c3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lettuce/src/test/java/com/lambdaworks/redis/ClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
package com.lambdaworks.redis;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Ignore;

import java.util.concurrent.TimeUnit;

import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

import java.util.concurrent.TimeUnit;

public class ClientTest extends AbstractCommandTest {
@Rule
public ExpectedException exception = ExpectedException.none();
Expand Down Expand Up @@ -51,10 +49,10 @@ public void listenerTest() throws Exception {

}

@Test(expected = RedisException.class, timeout = 100)
@Test(expected = RedisException.class)
public void timeout() throws Exception {
redis.setTimeout(0, TimeUnit.MICROSECONDS);
redis.get(key);
redis.eval(" os.execute(\"sleep \" .. tonumber(1))", ScriptOutputType.STATUS);
}

@Test
Expand Down

0 comments on commit 25577c3

Please sign in to comment.