aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-04-11 00:20:05 +0100
committerJustin Clark-Casey (justincc)2014-04-11 00:29:06 +0100
commit530c86335d637ed72411c1161c89ece166160586 (patch)
tree13b8db0239ebdd5d070b4777aefb083857505540 /OpenSim/Tests
parentBulletSim: small tweek to avatar height reduce feet embedded into prims. (diff)
downloadopensim-SC_OLD-530c86335d637ed72411c1161c89ece166160586.zip
opensim-SC_OLD-530c86335d637ed72411c1161c89ece166160586.tar.gz
opensim-SC_OLD-530c86335d637ed72411c1161c89ece166160586.tar.bz2
opensim-SC_OLD-530c86335d637ed72411c1161c89ece166160586.tar.xz
Fix the presence info caching used in llRequestAgentData(), which was completely inoperative.
This means the presence info may be out of date by up to 20 seconds, but this avoids scripts potentially triggering constants requests to user accout and presence info services. Relates to http://opensimulator.org/mantis/view.php?id=7088 though I fixed in a different way. Adds regression test for this case.
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r--OpenSim/Tests/Common/Helpers/SceneHelpers.cs6
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;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using Nini.Config; 31using Nini.Config;
32using OpenMetaverse; 32using OpenMetaverse;
33using OpenSim.Data.Null;
33using OpenSim.Framework; 34using OpenSim.Framework;
34using OpenSim.Framework.Communications; 35using OpenSim.Framework.Communications;
35using OpenSim.Framework.Console; 36using 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");