* Fix test breakage by always inserting a gods module when testing
parent
6d48c2422e
commit
2914bfe7b0
|
@ -34,7 +34,7 @@ using OpenSim.Region.Framework.Interfaces;
|
||||||
|
|
||||||
namespace OpenSim.Region.CoreModules.Avatar.Gods
|
namespace OpenSim.Region.CoreModules.Avatar.Gods
|
||||||
{
|
{
|
||||||
public class GodsModules : IRegionModule, IGodsModule
|
public class GodsModule : IRegionModule, IGodsModule
|
||||||
{
|
{
|
||||||
protected Scene m_scene;
|
protected Scene m_scene;
|
||||||
protected IDialogModule m_dialogModule;
|
protected IDialogModule m_dialogModule;
|
||||||
|
|
|
@ -38,6 +38,7 @@ using OpenSim.Region.Framework;
|
||||||
using OpenSim.Region.Framework.Interfaces;
|
using OpenSim.Region.Framework.Interfaces;
|
||||||
using OpenSim.Region.Framework.Scenes;
|
using OpenSim.Region.Framework.Scenes;
|
||||||
using OpenSim.Region.CoreModules.Agent.Capabilities;
|
using OpenSim.Region.CoreModules.Agent.Capabilities;
|
||||||
|
using OpenSim.Region.CoreModules.Avatar.Gods;
|
||||||
using OpenSim.Tests.Common.Mock;
|
using OpenSim.Tests.Common.Mock;
|
||||||
|
|
||||||
namespace OpenSim.Tests.Common.Setup
|
namespace OpenSim.Tests.Common.Setup
|
||||||
|
@ -85,6 +86,11 @@ namespace OpenSim.Tests.Common.Setup
|
||||||
IRegionModule capsModule = new CapabilitiesModule();
|
IRegionModule capsModule = new CapabilitiesModule();
|
||||||
capsModule.Initialise(testScene, new IniConfigSource());
|
capsModule.Initialise(testScene, new IniConfigSource());
|
||||||
testScene.AddModule(capsModule.Name, capsModule);
|
testScene.AddModule(capsModule.Name, capsModule);
|
||||||
|
|
||||||
|
IRegionModule godsModule = new GodsModule();
|
||||||
|
godsModule.Initialise(testScene, new IniConfigSource());
|
||||||
|
testScene.AddModule(godsModule.Name, godsModule);
|
||||||
|
|
||||||
testScene.SetModuleInterfaces();
|
testScene.SetModuleInterfaces();
|
||||||
|
|
||||||
testScene.LandChannel = new TestLandChannel();
|
testScene.LandChannel = new TestLandChannel();
|
||||||
|
|
Loading…
Reference in New Issue