Skip to content

Commit 7f9ef68

Browse files
fixup! Replace ICache interface by a CacheBase class
Update the UpdateTimestampsCache test for accounting field changes
1 parent 588b121 commit 7f9ef68

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/NHibernate.Test/Async/CacheTest/BatchableCacheFixture.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,11 @@ public async Task UpdateTimestampsCacheTestAsync()
543543
{
544544
var timestamp = Sfi.UpdateTimestampsCache;
545545
var field = typeof(UpdateTimestampsCache).GetField(
546-
"_batchUpdateTimestamps",
546+
"_updateTimestamps",
547547
BindingFlags.NonPublic | BindingFlags.Instance);
548-
Assert.That(field, Is.Not.Null);
548+
Assert.That(field, Is.Not.Null, "Unable to find _updateTimestamps field");
549549
var cache = (BatchableCache) field.GetValue(timestamp);
550-
Assert.That(cache, Is.Not.Null);
550+
Assert.That(cache, Is.Not.Null, "Cache field");
551551

552552
using (var s = OpenSession())
553553
{

src/NHibernate.Test/CacheTest/BatchableCacheFixture.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,11 +531,11 @@ public void UpdateTimestampsCacheTest()
531531
{
532532
var timestamp = Sfi.UpdateTimestampsCache;
533533
var field = typeof(UpdateTimestampsCache).GetField(
534-
"_batchUpdateTimestamps",
534+
"_updateTimestamps",
535535
BindingFlags.NonPublic | BindingFlags.Instance);
536-
Assert.That(field, Is.Not.Null);
536+
Assert.That(field, Is.Not.Null, "Unable to find _updateTimestamps field");
537537
var cache = (BatchableCache) field.GetValue(timestamp);
538-
Assert.That(cache, Is.Not.Null);
538+
Assert.That(cache, Is.Not.Null, "Cache field");
539539

540540
using (var s = OpenSession())
541541
{

0 commit comments

Comments
 (0)