HHH-8002 TransactionTimeoutTest#testTransactionTimeoutSuccess failing on
Oracle
This commit is contained in:
parent
cc8395e280
commit
98a49b80b2
|
@ -23,7 +23,8 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.tm;
|
package org.hibernate.test.tm;
|
||||||
|
|
||||||
import org.junit.Test;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertNotSame;
|
||||||
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.Transaction;
|
import org.hibernate.Transaction;
|
||||||
|
@ -35,9 +36,7 @@ import org.hibernate.test.jdbc.Person;
|
||||||
import org.hibernate.testing.SkipForDialect;
|
import org.hibernate.testing.SkipForDialect;
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
||||||
|
import org.junit.Test;
|
||||||
import static org.junit.Assert.assertEquals;
|
|
||||||
import static org.junit.Assert.assertNotSame;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
||||||
|
@ -79,7 +78,7 @@ public class TransactionTimeoutTest extends BaseCoreFunctionalTestCase {
|
||||||
public void testTransactionTimeoutSuccess() {
|
public void testTransactionTimeoutSuccess() {
|
||||||
Session session = openSession();
|
Session session = openSession();
|
||||||
Transaction transaction = session.getTransaction();
|
Transaction transaction = session.getTransaction();
|
||||||
transaction.setTimeout( 5 );
|
transaction.setTimeout( 60 );
|
||||||
transaction.begin();
|
transaction.begin();
|
||||||
session.persist( new Person( "Lukasz", "Antoniak" ) );
|
session.persist( new Person( "Lukasz", "Antoniak" ) );
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
|
|
Loading…
Reference in New Issue