aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2012-11-10 10:21:37 -0800
committerDiva Canto2012-11-10 10:21:37 -0800
commit26a94610fc88846aeab8e6e2ac09ebcf85a89122 (patch)
tree79134564ed299f484f13f08e2f1b084ca8bb0d3c
parentOne more module: EventQueueGetModule. Also making it non-optional for this dll. (diff)
downloadopensim-SC_OLD-26a94610fc88846aeab8e6e2ac09ebcf85a89122.zip
opensim-SC_OLD-26a94610fc88846aeab8e6e2ac09ebcf85a89122.tar.gz
opensim-SC_OLD-26a94610fc88846aeab8e6e2ac09ebcf85a89122.tar.bz2
opensim-SC_OLD-26a94610fc88846aeab8e6e2ac09ebcf85a89122.tar.xz
Fix Unit tests -- the module contract was not being honored in the set up of scenes.
-rw-r--r--OpenSim/Tests/Common/Helpers/SceneHelpers.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs
index fc49169..6d67b67 100644
--- a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs
+++ b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs
@@ -385,18 +385,18 @@ namespace OpenSim.Tests.Common
385 385
386 foreach (IRegionModuleBase module in newModules) 386 foreach (IRegionModuleBase module in newModules)
387 { 387 {
388 if (module is ISharedRegionModule) ((ISharedRegionModule)module).PostInitialise();
389 }
390
391 foreach (IRegionModuleBase module in newModules)
392 {
393 foreach (Scene scene in scenes) 388 foreach (Scene scene in scenes)
394 { 389 {
395 module.AddRegion(scene); 390 module.AddRegion(scene);
396 scene.AddRegionModule(module.Name, module); 391 scene.AddRegionModule(module.Name, module);
397 } 392 }
398 } 393 }
399 394
395 foreach (IRegionModuleBase module in newModules)
396 {
397 if (module is ISharedRegionModule) ((ISharedRegionModule)module).PostInitialise();
398 }
399
400 // RegionLoaded is fired after all modules have been appropriately added to all scenes 400 // RegionLoaded is fired after all modules have been appropriately added to all scenes
401 foreach (IRegionModuleBase module in newModules) 401 foreach (IRegionModuleBase module in newModules)
402 foreach (Scene scene in scenes) 402 foreach (Scene scene in scenes)