From 25577c3a6cd0d26f86a65f45366bd5bca0517b3b Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 10 Jun 2014 21:08:06 +0200 Subject: [PATCH] Fixed timeout test --- .../test/java/com/lambdaworks/redis/ClientTest.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lettuce/src/test/java/com/lambdaworks/redis/ClientTest.java b/lettuce/src/test/java/com/lambdaworks/redis/ClientTest.java index dbc36b9743..11016c44d6 100644 --- a/lettuce/src/test/java/com/lambdaworks/redis/ClientTest.java +++ b/lettuce/src/test/java/com/lambdaworks/redis/ClientTest.java @@ -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(); @@ -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