From 6c1d6283e62a4212b2eef97eefc3ababa0fca9e5 Mon Sep 17 00:00:00 2001 From: diva Date: Thu, 11 Jun 2009 19:12:20 +0000 Subject: Small improvement in the IAR tests, but these tests are still showing random behavior, so they are still commented out. --- .../Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs index e499f85..1e300f5 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs @@ -85,6 +85,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests cm.UserAdminService.AddUser(userFirstName, userLastName, string.Empty, string.Empty, 1000, 1000, userId); CachedUserInfo userInfo = cm.UserProfileCacheService.GetUserDetails(userId); userInfo.FetchInventory(); + while (!userInfo.HasReceivedInventory){ }; // Create asset SceneObjectGroup object1; @@ -334,7 +335,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests public void TestReplicateArchivePathToUserInventory() { TestHelper.InMethod(); - CommunicationsManager commsManager = new TestCommunicationsManager(); + Scene scene = SceneSetupHelpers.SetupScene(false); + CommunicationsManager commsManager = scene.CommsManager; + CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager); Dictionary foldersCreated = new Dictionary(); List nodesLoaded = new List(); -- cgit v1.1