HHH-8002 TransactionTimeoutTest#testTransactionTimeoutSuccess failing on

Oracle
This commit is contained in:
Brett Meyer 2013-02-13 22:27:08 -05:00
parent cc8395e280
commit 98a49b80b2
1 changed files with 4 additions and 5 deletions

View File

@ -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();