diff options
Sending this to Justin, so that he can see what's wrong with the StandaloneTeleportTests when we add RESTInterregionComms module to the ScenePresenceTests.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs index 2053c8f..db88878 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs | |||
@@ -36,7 +36,7 @@ using OpenSim.Framework; | |||
36 | using OpenSim.Framework.Communications; | 36 | using OpenSim.Framework.Communications; |
37 | using OpenSim.Region.Framework.Scenes; | 37 | using OpenSim.Region.Framework.Scenes; |
38 | using OpenSim.Region.Framework.Interfaces; | 38 | using OpenSim.Region.Framework.Interfaces; |
39 | using OpenSim.Region.CoreModules.Communications.Local; | 39 | using OpenSim.Region.CoreModules.Communications.REST; |
40 | using OpenSim.Region.CoreModules.World.Serialiser; | 40 | using OpenSim.Region.CoreModules.World.Serialiser; |
41 | using OpenSim.Tests.Common.Mock; | 41 | using OpenSim.Tests.Common.Mock; |
42 | using OpenSim.Tests.Common.Setup; | 42 | using OpenSim.Tests.Common.Setup; |
@@ -66,6 +66,15 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
66 | scene2 = SceneSetupHelpers.SetupScene("Neighbour x+1", UUID.Random(), 1001, 1000, cm); | 66 | scene2 = SceneSetupHelpers.SetupScene("Neighbour x+1", UUID.Random(), 1001, 1000, cm); |
67 | scene3 = SceneSetupHelpers.SetupScene("Neighbour x-1", UUID.Random(), 999, 1000, cm); | 67 | scene3 = SceneSetupHelpers.SetupScene("Neighbour x-1", UUID.Random(), 999, 1000, cm); |
68 | 68 | ||
69 | IRegionModule interregionComms = new RESTInterregionComms(); | ||
70 | interregionComms.Initialise(scene, new IniConfigSource()); | ||
71 | interregionComms.Initialise(scene2, new IniConfigSource()); | ||
72 | interregionComms.Initialise(scene3, new IniConfigSource()); | ||
73 | interregionComms.PostInitialise(); | ||
74 | SceneSetupHelpers.SetupSceneModules(scene, new IniConfigSource(), interregionComms); | ||
75 | SceneSetupHelpers.SetupSceneModules(scene2, new IniConfigSource(), interregionComms); | ||
76 | SceneSetupHelpers.SetupSceneModules(scene3, new IniConfigSource(), interregionComms); | ||
77 | |||
69 | agent1 = UUID.Random(); | 78 | agent1 = UUID.Random(); |
70 | agent2 = UUID.Random(); | 79 | agent2 = UUID.Random(); |
71 | agent3 = UUID.Random(); | 80 | agent3 = UUID.Random(); |
@@ -245,8 +254,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
245 | 254 | ||
246 | Assert.That(presence2.CrossAttachmentsIntoNewRegion(region1, true), Is.True, "Cross was not successful"); | 255 | Assert.That(presence2.CrossAttachmentsIntoNewRegion(region1, true), Is.True, "Cross was not successful"); |
247 | Assert.That(presence2.HasAttachments(), Is.False, "Presence2 objects were not deleted"); | 256 | Assert.That(presence2.HasAttachments(), Is.False, "Presence2 objects were not deleted"); |
248 | // Commenting this for now until we get the Comms module right... | 257 | Assert.That(presence.HasAttachments(), Is.True, "Presence has not received new objects"); |
249 | //Assert.That(presence.HasAttachments(), Is.True, "Presence has not received new objects"); | ||
250 | } | 258 | } |
251 | 259 | ||
252 | public static string GetRandomCapsObjectPath() | 260 | public static string GetRandomCapsObjectPath() |