diff options
author | Diva Canto | 2012-11-10 10:21:37 -0800 |
---|---|---|
committer | Diva Canto | 2012-11-10 10:21:37 -0800 |
commit | 26a94610fc88846aeab8e6e2ac09ebcf85a89122 (patch) | |
tree | 79134564ed299f484f13f08e2f1b084ca8bb0d3c /OpenSim/Tests/Common | |
parent | One more module: EventQueueGetModule. Also making it non-optional for this dll. (diff) | |
download | opensim-SC-26a94610fc88846aeab8e6e2ac09ebcf85a89122.zip opensim-SC-26a94610fc88846aeab8e6e2ac09ebcf85a89122.tar.gz opensim-SC-26a94610fc88846aeab8e6e2ac09ebcf85a89122.tar.bz2 opensim-SC-26a94610fc88846aeab8e6e2ac09ebcf85a89122.tar.xz |
Fix Unit tests -- the module contract was not being honored in the set up of scenes.
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/SceneHelpers.cs | 12 |
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) |