diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs index bdc2802..50fd2b0 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs | |||
@@ -136,8 +136,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests | |||
136 | item1.AssetID = asset1.FullID; | 136 | item1.AssetID = asset1.FullID; |
137 | item1.ID = item1Id; | 137 | item1.ID = item1Id; |
138 | InventoryFolderBase objsFolder | 138 | InventoryFolderBase objsFolder |
139 | = InventoryArchiveUtils.FindFolderByPath( | 139 | = InventoryArchiveUtils.FindFolderByPath(scene.InventoryService, userId, "Objects"); |
140 | scene.InventoryService, scene.InventoryService.GetRootFolder(userId), "Objects"); | ||
141 | item1.Folder = objsFolder.ID; | 140 | item1.Folder = objsFolder.ID; |
142 | scene.AddInventoryItem(userId, item1); | 141 | scene.AddInventoryItem(userId, item1); |
143 | 142 | ||
@@ -267,10 +266,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests | |||
267 | CachedUserInfo userInfo | 266 | CachedUserInfo userInfo |
268 | = scene.CommsManager.UserProfileCacheService.GetUserDetails(userFirstName, userLastName); | 267 | = scene.CommsManager.UserProfileCacheService.GetUserDetails(userFirstName, userLastName); |
269 | 268 | ||
270 | //InventoryItemBase foundItem = userInfo.RootFolder.FindItemByPath(itemName); | ||
271 | InventoryItemBase foundItem | 269 | InventoryItemBase foundItem |
272 | = InventoryArchiveUtils.FindItemByPath( | 270 | = InventoryArchiveUtils.FindItemByPath( scene.InventoryService, userInfo.UserProfile.ID, itemName); |
273 | scene.InventoryService, scene.InventoryService.GetRootFolder(userInfo.UserProfile.ID), itemName); | 271 | |
274 | Assert.That(foundItem, Is.Not.Null, "Didn't find loaded item"); | 272 | Assert.That(foundItem, Is.Not.Null, "Didn't find loaded item"); |
275 | Assert.That( | 273 | Assert.That( |
276 | foundItem.CreatorId, Is.EqualTo(item1.CreatorId), | 274 | foundItem.CreatorId, Is.EqualTo(item1.CreatorId), |