Skip to content

Commit 88491fc

Browse files
NH-2176 - disable custom factory in tests.
1 parent 91c7aa3 commit 88491fc

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/NHibernate.Test/NHSpecificTest/DtcFailures/DtcFailuresFixture.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ public class DtcFailuresFixture : TestCase
1919
{
2020
private static readonly ILog log = LogManager.GetLogger(typeof(DtcFailuresFixture));
2121

22-
protected override void Configure(Configuration configuration)
23-
{
24-
configuration.SetProperty(Cfg.Environment.TransactionStrategy, "NHibernate.Test.NHSpecificTest.NH2176.CustomAdoNetTransactionFactory, NHibernate.Test");
25-
}
26-
2722
protected override IList Mappings
2823
{
2924
get { return new[] {"NHSpecificTest.DtcFailures.Mappings.hbm.xml"}; }
@@ -65,7 +60,7 @@ private void BeforeBindMapping(object sender, BindMappingEventArgs e)
6560
prop.notnullSpecified = true;
6661
}
6762

68-
[Test, Ignore("With custom transaction factory, changes not explicitly flushed are ignored, so this test can no more test anything")]
63+
[Test]
6964
public void WillNotCrashOnDtcPrepareFailure()
7065
{
7166
var tx = new TransactionScope();

src/NHibernate.Test/NHSpecificTest/NH2176/Fixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class Fixture : BugTestCase
1717
{
1818
protected override void Configure(Configuration configuration)
1919
{
20-
configuration.SetProperty(Cfg.Environment.TransactionStrategy, "NHibernate.Test.NHSpecificTest.NH2176.CustomAdoNetTransactionFactory, NHibernate.Test");
20+
//configuration.SetProperty(Cfg.Environment.TransactionStrategy, "NHibernate.Test.NHSpecificTest.NH2176.CustomAdoNetTransactionFactory, NHibernate.Test");
2121
}
2222

2323
protected override void OnSetUp()

0 commit comments

Comments
 (0)