* Fix test breakage by always inserting a gods module when testing

0.6.5-rc1
Justin Clarke Casey 2009-03-30 19:09:57 +00:00
parent 6d48c2422e
commit 2914bfe7b0
2 changed files with 8 additions and 2 deletions

View File

@ -34,7 +34,7 @@ using OpenSim.Region.Framework.Interfaces;
namespace OpenSim.Region.CoreModules.Avatar.Gods
{
public class GodsModules : IRegionModule, IGodsModule
public class GodsModule : IRegionModule, IGodsModule
{
protected Scene m_scene;
protected IDialogModule m_dialogModule;

View File

@ -38,6 +38,7 @@ using OpenSim.Region.Framework;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
using OpenSim.Region.CoreModules.Agent.Capabilities;
using OpenSim.Region.CoreModules.Avatar.Gods;
using OpenSim.Tests.Common.Mock;
namespace OpenSim.Tests.Common.Setup
@ -85,6 +86,11 @@ namespace OpenSim.Tests.Common.Setup
IRegionModule capsModule = new CapabilitiesModule();
capsModule.Initialise(testScene, new IniConfigSource());
testScene.AddModule(capsModule.Name, capsModule);
IRegionModule godsModule = new GodsModule();
godsModule.Initialise(testScene, new IniConfigSource());
testScene.AddModule(godsModule.Name, godsModule);
testScene.SetModuleInterfaces();
testScene.LandChannel = new TestLandChannel();