From a175afdaf1769c8f29427d97d7d3f15e29cfde45 Mon Sep 17 00:00:00 2001 From: Scott Marlow Date: Mon, 5 Jun 2023 17:22:58 -0400 Subject: [PATCH] HHH-16275 also wait longer for LockTest.testLockUpdateFkTarget Signed-off-by: Scott Marlow --- .../test/java/org/hibernate/orm/test/jpa/lock/LockTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/lock/LockTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/lock/LockTest.java index 70cea7a28a..9a75e03fad 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/lock/LockTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/lock/LockTest.java @@ -1205,7 +1205,7 @@ public class LockTest extends BaseEntityManagerFunctionalTestCase { } ); } - @Test(timeout = 5 * 1000) //5 seconds + @Test(timeout = 70 * 1000) //70 seconds @TestForIssue( jiraKey = "HHH-13135" ) @SkipForDialect(value = { MySQLDialect.class, @@ -1237,7 +1237,7 @@ public class LockTest extends BaseEntityManagerFunctionalTestCase { assertEquals( "lock mode should be PESSIMISTIC_WRITE ", LockModeType.PESSIMISTIC_WRITE, _entityManager.getLockMode( l2 ) ); doInJPA( this::entityManagerFactory, entityManager -> { - TransactionUtil.setJdbcTimeout( entityManager.unwrap( Session.class ) ); + TransactionUtil.setJdbcTimeout( entityManager.unwrap( Session.class ), 60*1000L ); // wait up to a minute ); LockReference lockReference = entityManager.find( LockReference.class, ref.getId() ); // Check that we can update a LockReference, referring to a Lock that is PESSIMISTIC_WRITE locked