add TestsAssetCache using .net MemoryCache to tests only

This commit is contained in:
UbitUmarov
2020-10-22 16:51:16 +01:00
parent 5d2f27a02c
commit 56d3e1cdc9
5 changed files with 140 additions and 13 deletions

View File

@@ -54,7 +54,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
// We need an asset cache because otherwise the LocalAssetServiceConnector will short-circuit directly
// to the AssetService, which will then store temporary and local assets permanently
CoreAssetCache assetCache = new CoreAssetCache();
TestsAssetCache assetCache = new TestsAssetCache();
AvatarFactoryModule afm = new AvatarFactoryModule();
TestScene scene = new SceneHelpers(assetCache).SetupScene();
@@ -112,7 +112,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
// We need an asset cache because otherwise the LocalAssetServiceConnector will short-circuit directly
// to the AssetService, which will then store temporary and local assets permanently
CoreAssetCache assetCache = new CoreAssetCache();
TestsAssetCache assetCache = new TestsAssetCache();
AvatarFactoryModule afm = new AvatarFactoryModule();
TestScene scene = new SceneHelpers(assetCache).SetupScene();
@@ -157,7 +157,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
// We need an asset cache because otherwise the LocalAssetServiceConnector will short-circuit directly
// to the AssetService, which will then store temporary and local assets permanently
CoreAssetCache assetCache = new CoreAssetCache();
TestsAssetCache assetCache = new TestsAssetCache();
AvatarFactoryModule afm = new AvatarFactoryModule();
TestScene scene = new SceneHelpers(assetCache).SetupScene();