diff options
Diffstat (limited to 'OpenSim/Tests/Common/Helpers/SceneHelpers.cs')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/SceneHelpers.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs index 8f44555..eb8078d 100644 --- a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs | |||
@@ -30,6 +30,7 @@ using System.Net; | |||
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using Nini.Config; | 31 | using Nini.Config; |
32 | using OpenMetaverse; | 32 | using OpenMetaverse; |
33 | using OpenSim.Data.Null; | ||
33 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Communications; | 35 | using OpenSim.Framework.Communications; |
35 | using OpenSim.Framework.Console; | 36 | using OpenSim.Framework.Console; |
@@ -301,6 +302,11 @@ namespace OpenSim.Tests.Common | |||
301 | /// <param name="testScene"></param> | 302 | /// <param name="testScene"></param> |
302 | private static LocalPresenceServicesConnector StartPresenceService() | 303 | private static LocalPresenceServicesConnector StartPresenceService() |
303 | { | 304 | { |
305 | // Unfortunately, some services share data via statics, so we need to null every time to stop interference | ||
306 | // between tests. | ||
307 | // This is a massive non-obvious pita. | ||
308 | NullPresenceData.Instance = null; | ||
309 | |||
304 | IConfigSource config = new IniConfigSource(); | 310 | IConfigSource config = new IniConfigSource(); |
305 | config.AddConfig("Modules"); | 311 | config.AddConfig("Modules"); |
306 | config.AddConfig("PresenceService"); | 312 | config.AddConfig("PresenceService"); |