Skip to content

Commit 4454999

Browse files
fixup! Implement multiple get and put for query cache and query batch
Disable query cache batching test when multiple queries are not supported
1 parent 38c3c53 commit 4454999

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,10 @@ public async Task UpdateTimestampsCacheTestAsync()
602602
[Test]
603603
public async Task QueryCacheTestAsync()
604604
{
605+
// QueryCache batching is used by QueryBatch.
606+
if (!Sfi.ConnectionProvider.Driver.SupportsMultipleQueries)
607+
Assert.Ignore($"{Sfi.ConnectionProvider.Driver} does not support multiple queries");
608+
605609
var queryCache = Sfi.GetQueryCache(null);
606610
var readonlyField = typeof(StandardQueryCache).GetField(
607611
"_batchableReadOnlyCache",

src/NHibernate.Test/CacheTest/BatchableCacheFixture.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,10 @@ public void UpdateTimestampsCacheTest()
590590
[Test]
591591
public void QueryCacheTest()
592592
{
593+
// QueryCache batching is used by QueryBatch.
594+
if (!Sfi.ConnectionProvider.Driver.SupportsMultipleQueries)
595+
Assert.Ignore($"{Sfi.ConnectionProvider.Driver} does not support multiple queries");
596+
593597
var queryCache = Sfi.GetQueryCache(null);
594598
var readonlyField = typeof(StandardQueryCache).GetField(
595599
"_batchableReadOnlyCache",

0 commit comments

Comments
 (0)