remove now unnecessary parts of save iar test
parent
1cc0c94f79
commit
d8316810a1
|
@ -93,11 +93,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
string userFirstName = "Jock";
|
string userFirstName = "Jock";
|
||||||
string userLastName = "Stirrup";
|
string userLastName = "Stirrup";
|
||||||
UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000020");
|
UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000020");
|
||||||
CachedUserInfo userInfo;
|
|
||||||
|
|
||||||
lock (this)
|
lock (this)
|
||||||
{
|
{
|
||||||
userInfo = UserProfileTestUtils.CreateUserWithInventory(
|
UserProfileTestUtils.CreateUserWithInventory(
|
||||||
cm, userFirstName, userLastName, userId, InventoryReceived);
|
cm, userFirstName, userLastName, userId, InventoryReceived);
|
||||||
Monitor.Wait(this, 60000);
|
Monitor.Wait(this, 60000);
|
||||||
}
|
}
|
||||||
|
@ -136,23 +135,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
item1.Name = "My Little Dog";
|
item1.Name = "My Little Dog";
|
||||||
item1.AssetID = asset1.FullID;
|
item1.AssetID = asset1.FullID;
|
||||||
item1.ID = item1Id;
|
item1.ID = item1Id;
|
||||||
InventoryFolderImpl objsFolder = userInfo.RootFolder.FindFolderByPath("Objects");
|
InventoryFolderBase objsFolder
|
||||||
//InventoryFolderBase objsFolder = scene.InventoryService.GetFolderForType(userId, AssetType.Object);
|
= InventoryArchiveUtils.FindFolderByPath(
|
||||||
Console.WriteLine("here2");
|
scene.InventoryService, scene.InventoryService.GetRootFolder(userId), "Objects");
|
||||||
/*
|
|
||||||
IInventoryService inventoryService = scene.InventoryService;
|
|
||||||
InventoryFolderBase rootFolder = inventoryService.GetRootFolder(userId);
|
|
||||||
InventoryCollection rootContents = inventoryService.GetFolderContent(userId, rootFolder.ID);
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
InventoryFolderBase objsFolder = null;
|
|
||||||
foreach (InventoryFolderBase folder in rootContents.Folders)
|
|
||||||
if (folder.Name == "Objects")
|
|
||||||
objsFolder = folder;
|
|
||||||
*/
|
|
||||||
item1.Folder = objsFolder.ID;
|
item1.Folder = objsFolder.ID;
|
||||||
scene.AddInventoryItem(userId, item1);
|
scene.AddInventoryItem(userId, item1);
|
||||||
userInfo.AddItem(item1);
|
|
||||||
|
|
||||||
MemoryStream archiveWriteStream = new MemoryStream();
|
MemoryStream archiveWriteStream = new MemoryStream();
|
||||||
archiverModule.OnInventoryArchiveSaved += SaveCompleted;
|
archiverModule.OnInventoryArchiveSaved += SaveCompleted;
|
||||||
|
|
Loading…
Reference in New Issue