Fix Unit tests -- the module contract was not being honored in the set up of scenes.

0.7.4-extended
Diva Canto 2012-11-10 10:21:37 -08:00 committed by Justin Clark-Casey (justincc)
parent a5fdfd6343
commit c6c6ac0a3e
1 changed files with 6 additions and 6 deletions

View File

@ -383,11 +383,6 @@ namespace OpenSim.Tests.Common
} }
} }
foreach (IRegionModuleBase module in newModules)
{
if (module is ISharedRegionModule) ((ISharedRegionModule)module).PostInitialise();
}
foreach (IRegionModuleBase module in newModules) foreach (IRegionModuleBase module in newModules)
{ {
foreach (Scene scene in scenes) foreach (Scene scene in scenes)
@ -397,6 +392,11 @@ namespace OpenSim.Tests.Common
} }
} }
foreach (IRegionModuleBase module in newModules)
{
if (module is ISharedRegionModule) ((ISharedRegionModule)module).PostInitialise();
}
// RegionLoaded is fired after all modules have been appropriately added to all scenes // RegionLoaded is fired after all modules have been appropriately added to all scenes
foreach (IRegionModuleBase module in newModules) foreach (IRegionModuleBase module in newModules)
foreach (Scene scene in scenes) foreach (Scene scene in scenes)