From 2914bfe7b007d043eedfa2f827208a8524c1490b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 30 Mar 2009 19:09:57 +0000 Subject: * Fix test breakage by always inserting a gods module when testing --- OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Tests') diff --git a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs index 5d35e35..d4c2daa 100644 --- a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs +++ b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs @@ -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 @@ -82,9 +83,14 @@ namespace OpenSim.Tests.Common.Setup TestScene testScene = new TestScene( regInfo, acm, cm, scs, sm, null, false, false, false, configSource, null); - IRegionModule capsModule = new CapabilitiesModule(); + 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(); -- cgit v1.1