Skip to content

Commit c815af2

Browse files
committed
Minor: Using Transaction instead of Flush() (passing now for MySQL too)
SVN: trunk@4434
1 parent 65ff6a3 commit c815af2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/NHibernate.Test/MultipleCollectionFetchTest/AbstractMultipleCollectionFetchFixture.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ private Person CreateGrandparent()
5252

5353
protected virtual void RunLinearJoinFetchTest(Person parent)
5454
{
55-
using (ISession s = OpenSession())
55+
using (ISession s = OpenSession())
56+
using(ITransaction tx = s.BeginTransaction())
5657
{
5758
s.Save(parent);
58-
s.Flush();
59+
tx.Commit();
5960
}
6061
using (ISession s = OpenSession())
6162
{

0 commit comments

Comments
 (0)