Skip to content

Commit 1405039

Browse files
committed
Fix tests
1 parent 6cbb55a commit 1405039

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/NHibernate.Test/CacheTest/CacheFixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace NHibernate.Test.CacheTest
1111
public class CacheFixture: TestCase
1212
{
1313
[Test]
14-
public void TestSimpleCache()
14+
public void TestSimpleReadWriteCache()
1515
{
1616
DoTestCache(new HashtableCacheProvider());
1717
}
@@ -46,7 +46,8 @@ public void DoTestCache(ICacheProvider cacheProvider)
4646

4747
Assert.IsNull(ccs.Get(fooKey, longBefore));
4848
Assert.AreEqual("foo", ccs.Get(fooKey, after));
49-
Assert.IsFalse(ccs.Put(fooKey, "foo", before, null, null, false));
49+
Assert.IsFalse(ccs.Put(fooKey, "foo", before, null, null, true));
50+
Assert.IsTrue(ccs.Put(fooKey, "foo", before, null, null, false));
5051

5152
// update it;
5253

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ protected override void Configure(NHCfg.Configuration configuration)
1414
{
1515
configuration.SetProperty(NHCfg.Environment.UseSecondLevelCache, "true");
1616
configuration.SetProperty(NHCfg.Environment.GenerateStatistics, "true");
17+
configuration.SetProperty(NHCfg.Environment.UseMinimalPuts, "true");
1718
}
1819

1920
protected override void OnTearDown()

0 commit comments

Comments
 (0)