aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs5
1 files changed, 4 insertions, 1 deletions
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
85 cm.UserAdminService.AddUser(userFirstName, userLastName, string.Empty, string.Empty, 1000, 1000, userId); 85 cm.UserAdminService.AddUser(userFirstName, userLastName, string.Empty, string.Empty, 1000, 1000, userId);
86 CachedUserInfo userInfo = cm.UserProfileCacheService.GetUserDetails(userId); 86 CachedUserInfo userInfo = cm.UserProfileCacheService.GetUserDetails(userId);
87 userInfo.FetchInventory(); 87 userInfo.FetchInventory();
88 while (!userInfo.HasReceivedInventory){ };
88 89
89 // Create asset 90 // Create asset
90 SceneObjectGroup object1; 91 SceneObjectGroup object1;
@@ -334,7 +335,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
334 public void TestReplicateArchivePathToUserInventory() 335 public void TestReplicateArchivePathToUserInventory()
335 { 336 {
336 TestHelper.InMethod(); 337 TestHelper.InMethod();
337 CommunicationsManager commsManager = new TestCommunicationsManager(); 338 Scene scene = SceneSetupHelpers.SetupScene(false);
339 CommunicationsManager commsManager = scene.CommsManager;
340
338 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager); 341 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager);
339 Dictionary <string, InventoryFolderImpl> foldersCreated = new Dictionary<string, InventoryFolderImpl>(); 342 Dictionary <string, InventoryFolderImpl> foldersCreated = new Dictionary<string, InventoryFolderImpl>();
340 List<InventoryNodeBase> nodesLoaded = new List<InventoryNodeBase>(); 343 List<InventoryNodeBase> nodesLoaded = new List<InventoryNodeBase>();