diff --git a/spring-integration-zookeeper/src/test/java/org/springframework/integration/zookeeper/lock/ZkLockRegistryTests.java b/spring-integration-zookeeper/src/test/java/org/springframework/integration/zookeeper/lock/ZkLockRegistryTests.java index 491bbfcd77..4405a7eab8 100644 --- a/spring-integration-zookeeper/src/test/java/org/springframework/integration/zookeeper/lock/ZkLockRegistryTests.java +++ b/spring-integration-zookeeper/src/test/java/org/springframework/integration/zookeeper/lock/ZkLockRegistryTests.java @@ -337,7 +337,7 @@ public class ZkLockRegistryTests extends ZookeeperTestSupport { testingServer.restart(); assertTrue("Should have been able to lock with zookeeper server restarted!", - lock2.tryLock(1, TimeUnit.SECONDS)); + lock2.tryLock(10, TimeUnit.SECONDS)); assertTrue("Should have still held lock1", lock1.tryLock(1, TimeUnit.SECONDS));