Skip to content

Commit 31c2804

Browse files
committed
NH3641/TestFixture.cs: Order cleanup deletes. (Try to fix test failure due to referential constraint on MySQL on the build server (unable to reproduce locally)).
1 parent dc14d6e commit 31c2804

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NHibernate.Test/NHSpecificTest/NH3641/TestFixture.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ protected override void OnTearDown()
3333

3434
private static void DeleteAll<T>(ISession session)
3535
{
36-
session.CreateQuery("delete from " + typeof (T).Name).ExecuteUpdate();
36+
session.CreateQuery("delete from " + typeof(T).Name + " where ChildInterface is null").ExecuteUpdate();
37+
session.CreateQuery("delete from " + typeof(T).Name).ExecuteUpdate();
3738
}
3839

3940
[Test]

0 commit comments

Comments
 (0)