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, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs index e300eb1..99d02c4 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs | |||
@@ -295,7 +295,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests | |||
295 | TestHelper.InMethod(); | 295 | TestHelper.InMethod(); |
296 | log4net.Config.XmlConfigurator.Configure(); | 296 | log4net.Config.XmlConfigurator.Configure(); |
297 | 297 | ||
298 | string itemName = "You & you are a mean man"; | 298 | string itemName = "You & you are a mean/man/"; |
299 | string humanEscapedItemName = @"You & you are a mean\/man\/"; | ||
299 | string userPassword = "meowfood"; | 300 | string userPassword = "meowfood"; |
300 | 301 | ||
301 | InventoryArchiverModule archiverModule = new InventoryArchiverModule(true); | 302 | InventoryArchiverModule archiverModule = new InventoryArchiverModule(true); |
@@ -360,7 +361,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests | |||
360 | Guid.NewGuid(), userFirstName, userLastName, "Objects", userPassword, archiveWriteStream); | 361 | Guid.NewGuid(), userFirstName, userLastName, "Objects", userPassword, archiveWriteStream); |
361 | mre.WaitOne(60000, false); | 362 | mre.WaitOne(60000, false); |
362 | 363 | ||
363 | /// LOAD ITEM | 364 | // LOAD ITEM |
364 | MemoryStream archiveReadStream = new MemoryStream(archiveWriteStream.ToArray()); | 365 | MemoryStream archiveReadStream = new MemoryStream(archiveWriteStream.ToArray()); |
365 | 366 | ||
366 | archiverModule.DearchiveInventory(userFirstName, userLastName, "Scripts", userPassword, archiveReadStream); | 367 | archiverModule.DearchiveInventory(userFirstName, userLastName, "Scripts", userPassword, archiveReadStream); |
@@ -369,7 +370,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests | |||
369 | = scene.CommsManager.UserProfileCacheService.GetUserDetails(userFirstName, userLastName); | 370 | = scene.CommsManager.UserProfileCacheService.GetUserDetails(userFirstName, userLastName); |
370 | 371 | ||
371 | InventoryItemBase foundItem1 | 372 | InventoryItemBase foundItem1 |
372 | = InventoryArchiveUtils.FindItemByPath(scene.InventoryService, userId, "Scripts/Objects/" + itemName); | 373 | = InventoryArchiveUtils.FindItemByPath( |
374 | scene.InventoryService, userId, "Scripts/Objects/" + humanEscapedItemName); | ||
373 | 375 | ||
374 | Assert.That(foundItem1, Is.Not.Null, "Didn't find loaded item 1"); | 376 | Assert.That(foundItem1, Is.Not.Null, "Didn't find loaded item 1"); |
375 | // Assert.That( | 377 | // Assert.That( |