diff options
author | Justin Clarke Casey | 2009-03-30 19:09:57 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-03-30 19:09:57 +0000 |
commit | 2914bfe7b007d043eedfa2f827208a8524c1490b (patch) | |
tree | afa45ea76ba6e3e5a4f27462c6a3cfcb30099002 /OpenSim | |
parent | set MONO_THREADS_PER_CPU for the test runs, see if this makes the (diff) | |
download | opensim-SC_OLD-2914bfe7b007d043eedfa2f827208a8524c1490b.zip opensim-SC_OLD-2914bfe7b007d043eedfa2f827208a8524c1490b.tar.gz opensim-SC_OLD-2914bfe7b007d043eedfa2f827208a8524c1490b.tar.bz2 opensim-SC_OLD-2914bfe7b007d043eedfa2f827208a8524c1490b.tar.xz |
* Fix test breakage by always inserting a gods module when testing
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs | 2 | ||||
-rw-r--r-- | OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs b/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs index dfd6c06..9601ffc 100644 --- a/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs | |||
@@ -34,7 +34,7 @@ using OpenSim.Region.Framework.Interfaces; | |||
34 | 34 | ||
35 | namespace OpenSim.Region.CoreModules.Avatar.Gods | 35 | namespace OpenSim.Region.CoreModules.Avatar.Gods |
36 | { | 36 | { |
37 | public class GodsModules : IRegionModule, IGodsModule | 37 | public class GodsModule : IRegionModule, IGodsModule |
38 | { | 38 | { |
39 | protected Scene m_scene; | 39 | protected Scene m_scene; |
40 | protected IDialogModule m_dialogModule; | 40 | protected IDialogModule m_dialogModule; |
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; | |||
38 | using OpenSim.Region.Framework.Interfaces; | 38 | using OpenSim.Region.Framework.Interfaces; |
39 | using OpenSim.Region.Framework.Scenes; | 39 | using OpenSim.Region.Framework.Scenes; |
40 | using OpenSim.Region.CoreModules.Agent.Capabilities; | 40 | using OpenSim.Region.CoreModules.Agent.Capabilities; |
41 | using OpenSim.Region.CoreModules.Avatar.Gods; | ||
41 | using OpenSim.Tests.Common.Mock; | 42 | using OpenSim.Tests.Common.Mock; |
42 | 43 | ||
43 | namespace OpenSim.Tests.Common.Setup | 44 | namespace OpenSim.Tests.Common.Setup |
@@ -82,9 +83,14 @@ namespace OpenSim.Tests.Common.Setup | |||
82 | TestScene testScene = new TestScene( | 83 | TestScene testScene = new TestScene( |
83 | regInfo, acm, cm, scs, sm, null, false, false, false, configSource, null); | 84 | regInfo, acm, cm, scs, sm, null, false, false, false, configSource, null); |
84 | 85 | ||
85 | IRegionModule capsModule = new CapabilitiesModule(); | 86 | IRegionModule capsModule = new CapabilitiesModule(); |
86 | capsModule.Initialise(testScene, new IniConfigSource()); | 87 | capsModule.Initialise(testScene, new IniConfigSource()); |
87 | testScene.AddModule(capsModule.Name, capsModule); | 88 | testScene.AddModule(capsModule.Name, capsModule); |
89 | |||
90 | IRegionModule godsModule = new GodsModule(); | ||
91 | godsModule.Initialise(testScene, new IniConfigSource()); | ||
92 | testScene.AddModule(godsModule.Name, godsModule); | ||
93 | |||
88 | testScene.SetModuleInterfaces(); | 94 | testScene.SetModuleInterfaces(); |
89 | 95 | ||
90 | testScene.LandChannel = new TestLandChannel(); | 96 | testScene.LandChannel = new TestLandChannel(); |