From d08087fbbf38077349e305347a4bfe14c908d0dc Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Wed, 16 Aug 2023 21:53:11 +0200 Subject: [PATCH] Increase timeout for some tests --- .../hibernate/orm/test/locking/jpa/FollowOnLockingTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/locking/jpa/FollowOnLockingTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/locking/jpa/FollowOnLockingTest.java index 66b3cc14cc..64b4cd618a 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/locking/jpa/FollowOnLockingTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/locking/jpa/FollowOnLockingTest.java @@ -8,6 +8,7 @@ package org.hibernate.orm.test.locking.jpa; import java.util.List; import java.util.Map; +import java.util.concurrent.TimeUnit; import org.hibernate.dialect.CockroachDialect; import org.hibernate.dialect.HSQLDialect; @@ -41,12 +42,12 @@ import static org.hibernate.jpa.SpecHints.HINT_SPEC_QUERY_TIMEOUT; public class FollowOnLockingTest { @Test - @Timeout( 10 ) + @Timeout(value = 1, unit = TimeUnit.MINUTES) public void testQueryLockingWithoutFollowOn(SessionFactoryScope scope) { testQueryLocking( scope, false ); } @Test - @Timeout( 10 ) + @Timeout(value = 1, unit = TimeUnit.MINUTES) public void testQueryLockingWithFollowOn(SessionFactoryScope scope) { testQueryLocking( scope, true ); }