diff options
author | Diva Canto | 2009-09-28 17:42:35 -0700 |
---|---|---|
committer | Diva Canto | 2009-09-28 17:42:35 -0700 |
commit | a60ed0562ca403b5881e221ccbdd8366ff053a27 (patch) | |
tree | 6c7bb629afb47c21fe6ecd42300cbcc16ebe4be7 /OpenSim/Tests | |
parent | Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-a60ed0562ca403b5881e221ccbdd8366ff053a27.zip opensim-SC_OLD-a60ed0562ca403b5881e221ccbdd8366ff053a27.tar.gz opensim-SC_OLD-a60ed0562ca403b5881e221ccbdd8366ff053a27.tar.bz2 opensim-SC_OLD-a60ed0562ca403b5881e221ccbdd8366ff053a27.tar.xz |
I think I have fixed something that was broken in the scene setup (tests) and that needs to be reflected in all other services setups. But the teleport test still doesn't work. Commenting it for now.
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs index 95f5e3c..53f24d9 100644 --- a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs +++ b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | |||
@@ -249,21 +249,24 @@ namespace OpenSim.Tests.Common.Setup | |||
249 | 249 | ||
250 | private static void StartGridService(Scene testScene, bool real) | 250 | private static void StartGridService(Scene testScene, bool real) |
251 | { | 251 | { |
252 | ISharedRegionModule gridService = new LocalGridServicesConnector(); | ||
253 | IConfigSource config = new IniConfigSource(); | 252 | IConfigSource config = new IniConfigSource(); |
254 | config.AddConfig("Modules"); | 253 | config.AddConfig("Modules"); |
255 | config.AddConfig("GridService"); | 254 | config.AddConfig("GridService"); |
256 | config.Configs["Modules"].Set("GridServices", "LocalGridServicesConnector"); | 255 | config.Configs["Modules"].Set("GridServices", "LocalGridServicesConnector"); |
256 | config.Configs["GridService"].Set("StorageProvider", "OpenSim.Data.Null.dll:NullRegionData"); | ||
257 | if (real) | 257 | if (real) |
258 | config.Configs["GridService"].Set("LocalServiceModule", "OpenSim.Services.GridService.dll:GridService"); | 258 | config.Configs["GridService"].Set("LocalServiceModule", "OpenSim.Services.GridService.dll:GridService"); |
259 | if (m_gridService == null) | ||
260 | { | ||
261 | ISharedRegionModule gridService = new LocalGridServicesConnector(); | ||
262 | gridService.Initialise(config); | ||
263 | m_gridService = gridService; | ||
264 | } | ||
259 | //else | 265 | //else |
260 | // config.Configs["GridService"].Set("LocalServiceModule", "OpenSim.Tests.Common.dll:TestGridService"); | 266 | // config.Configs["GridService"].Set("LocalServiceModule", "OpenSim.Tests.Common.dll:TestGridService"); |
261 | config.Configs["GridService"].Set("StorageProvider", "OpenSim.Data.Null.dll:NullRegionData"); | 267 | m_gridService.AddRegion(testScene); |
262 | gridService.Initialise(config); | 268 | m_gridService.RegionLoaded(testScene); |
263 | gridService.AddRegion(testScene); | 269 | //testScene.AddRegionModule(m_gridService.Name, m_gridService); |
264 | gridService.RegionLoaded(testScene); | ||
265 | testScene.AddRegionModule(gridService.Name, gridService); | ||
266 | m_gridService = gridService; | ||
267 | } | 270 | } |
268 | 271 | ||
269 | 272 | ||