diff options
author | Tom | 2011-09-14 19:11:32 -0700 |
---|---|---|
committer | Tom | 2011-09-14 19:11:32 -0700 |
commit | 5484c9b585a2a6289456e9492ac2989d489b555c (patch) | |
tree | c9b79199722fe09c993c237dce40febf731264e3 /OpenSim/Tests | |
parent | Merge fixes, and fix the build (diff) | |
parent | Don't try and delete attachments for child agent close (diff) | |
download | opensim-SC_OLD-5484c9b585a2a6289456e9492ac2989d489b555c.zip opensim-SC_OLD-5484c9b585a2a6289456e9492ac2989d489b555c.tar.gz opensim-SC_OLD-5484c9b585a2a6289456e9492ac2989d489b555c.tar.bz2 opensim-SC_OLD-5484c9b585a2a6289456e9492ac2989d489b555c.tar.xz |
Bring us up to date.
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs | 3 | ||||
-rw-r--r-- | OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs index 4e60ca9..ceb7905 100644 --- a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs | |||
@@ -88,8 +88,7 @@ namespace OpenSim.Tests.Common | |||
88 | if (type == InventoryType.Notecard) | 88 | if (type == InventoryType.Notecard) |
89 | asset = AssetHelpers.CreateAsset(scene, userId); | 89 | asset = AssetHelpers.CreateAsset(scene, userId); |
90 | else if (type == InventoryType.Object) | 90 | else if (type == InventoryType.Object) |
91 | asset | 91 | asset = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId)); |
92 | = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId)); | ||
93 | else | 92 | else |
94 | throw new Exception(string.Format("Inventory type {0} not supported", type)); | 93 | throw new Exception(string.Format("Inventory type {0} not supported", type)); |
95 | 94 | ||
diff --git a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs index 2ea36da..79bb9c2 100644 --- a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs +++ b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs | |||
@@ -163,6 +163,10 @@ namespace OpenSim.Data.Null | |||
163 | { | 163 | { |
164 | RegionSettings rs = null; | 164 | RegionSettings rs = null; |
165 | m_regionSettings.TryGetValue(regionUUID, out rs); | 165 | m_regionSettings.TryGetValue(regionUUID, out rs); |
166 | |||
167 | if (rs == null) | ||
168 | rs = new RegionSettings(); | ||
169 | |||
166 | return rs; | 170 | return rs; |
167 | } | 171 | } |
168 | 172 | ||