Skip to content

Commit 6f886d3

Browse files
authored
Disable default caching in tests (#3177)
1 parent 556a4a7 commit 6f886d3

File tree

61 files changed

+49
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+49
-165
lines changed

src/NHibernate.Test/Any/AnyTypeTest.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ protected override string[] Mappings
1515
get { return new string[] {"Any.Person.hbm.xml"}; }
1616
}
1717

18-
protected override string CacheConcurrencyStrategy
19-
{
20-
get { return null; }
21-
}
22-
2318
[Test]
2419
public void FlushProcessing()
2520
{

src/NHibernate.Test/Async/Any/AnyTypeTest.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ protected override string[] Mappings
2626
get { return new string[] {"Any.Person.hbm.xml"}; }
2727
}
2828

29-
protected override string CacheConcurrencyStrategy
30-
{
31-
get { return null; }
32-
}
33-
3429
[Test]
3530
public async Task FlushProcessingAsync()
3631
{

src/NHibernate.Test/Async/BulkManipulation/NativeSQLBulkOperationsWithCache.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ namespace NHibernate.Test.BulkManipulation
2525
[TestFixture]
2626
public class NativeSQLBulkOperationsWithCacheAsync : TestCase
2727
{
28+
protected override string CacheConcurrencyStrategy => "nonstrict-read-write";
29+
2830
protected override string MappingsAssembly => "NHibernate.Test";
2931

3032
protected override string[] Mappings => new[] { "BulkManipulation.Vehicle.hbm.xml" };

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public BatchableCacheFixtureAsync(BatchFetchStyle fetchStyle)
4444

4545
protected override string MappingsAssembly => "NHibernate.Test";
4646

47-
protected override string CacheConcurrencyStrategy => null;
48-
4947
protected override void Configure(Configuration configuration)
5048
{
5149
configuration.SetProperty(Environment.UseSecondLevelCache, "true");

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public class BuildCacheFixtureAsync : TestCase
2929

3030
protected override string[] Mappings => new[] { "CacheTest.EntitiesInSameRegion.hbm.xml" };
3131

32-
// Disable the TestCase cache overrides.
33-
protected override string CacheConcurrencyStrategy => null;
34-
3532
protected override void Configure(Configuration configuration)
3633
{
3734
configuration.SetProperty(Environment.UseQueryCache, "true");

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public class SerializingCacheFixtureAsync : TestCase
2828

2929
protected override string MappingsAssembly => "NHibernate.Test";
3030

31-
protected override string CacheConcurrencyStrategy => null;
32-
3331
protected override void Configure(Configuration configuration)
3432
{
3533
configuration.SetProperty(Environment.UseSecondLevelCache, "true");

src/NHibernate.Test/Async/CompositeId/CompositeIdFixture.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ protected override string[] Mappings
3838
}
3939
}
4040

41-
protected override string CacheConcurrencyStrategy
42-
{
43-
get { return null; }
44-
}
45-
4641
protected override bool AppliesTo(Dialect.Dialect dialect)
4742
{
4843
// Order uses a scalar sub-select formula.

src/NHibernate.Test/Async/Criteria/SelectModeTest/SelectModeTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public class SelectModeTestAsync : TestCaseMappingByCode
3232
{
3333
private Guid _parentEntityComplexId;
3434

35+
protected override string CacheConcurrencyStrategy => "nonstrict-read-write";
36+
3537
[Test]
3638
public async Task SelectModeJoinOnlyAsync()
3739
{

src/NHibernate.Test/Async/Extralazy/ExtraLazyFixture.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ protected override string[] Mappings
3232
get { return new[] {"Extralazy.UserGroup.hbm.xml"}; }
3333
}
3434

35-
protected override string CacheConcurrencyStrategy
36-
{
37-
get { return null; }
38-
}
39-
4035
protected override void Configure(Configuration configuration)
4136
{
4237
configuration.SetProperty(Cfg.Environment.GenerateStatistics, "true");

src/NHibernate.Test/Async/FetchLazyProperties/FetchLazyPropertiesFixture.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ namespace NHibernate.Test.FetchLazyProperties
2525
[TestFixture]
2626
public class FetchLazyPropertiesFixtureAsync : TestCase
2727
{
28+
protected override string CacheConcurrencyStrategy => "nonstrict-read-write";
29+
2830
protected override string MappingsAssembly
2931
{
3032
get { return "NHibernate.Test"; }

0 commit comments

Comments
 (0)