Fix SRP test timing issue

This commit is contained in:
Jennifer Hickey
2013-07-15 20:06:02 -07:00
parent 83eed6707f
commit 7b406f9d46

View File

@@ -82,6 +82,8 @@ public class SrpConnectionPipelineIntegrationTests extends
public void testWatch() throws Exception {
connection.set("testitnow", "willdo");
connection.watch("testitnow".getBytes());
//Give some time for watch to be asynch executed
Thread.sleep(500);
DefaultStringRedisConnection conn2 = new DefaultStringRedisConnection(
connectionFactory.getConnection());
conn2.set("testitnow", "something");