aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Tests
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-06-08 01:24:44 +0100
committerJustin Clark-Casey (justincc)2012-06-08 01:26:43 +0100
commit30f4a33f01751d151ae3923b48e6e98083791140 (patch)
treee361716ee927c731621276b8bc490924a71d277f /OpenSim/Region/Framework/Scenes/Tests
parentGo back to calling IncomingCloseAgent() in the "kick user" command for consis... (diff)
downloadopensim-SC_OLD-30f4a33f01751d151ae3923b48e6e98083791140.zip
opensim-SC_OLD-30f4a33f01751d151ae3923b48e6e98083791140.tar.gz
opensim-SC_OLD-30f4a33f01751d151ae3923b48e6e98083791140.tar.bz2
opensim-SC_OLD-30f4a33f01751d151ae3923b48e6e98083791140.tar.xz
Don't make duplicate call to ScenePresence.Close() separately in ETM.DoTeleport() if an agent needs closing.
This is always done as part of Scene.RemoveClient() Also refactors try/catching in Scene.RemoveClient() to log NREs instead of silently discarding, since these are useful symptoms of problems.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests')
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs
index 1aa48d7..02c45ef 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs
@@ -101,7 +101,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
101 public void TestCloseAgent() 101 public void TestCloseAgent()
102 { 102 {
103 TestHelpers.InMethod(); 103 TestHelpers.InMethod();
104// log4net.Config.XmlConfigurator.Configure(); 104// TestHelpers.EnableLogging();
105 105
106 TestScene scene = new SceneHelpers().SetupScene(); 106 TestScene scene = new SceneHelpers().SetupScene();
107 ScenePresence sp = SceneHelpers.AddScenePresence(scene, TestHelpers.ParseTail(0x1)); 107 ScenePresence sp = SceneHelpers.AddScenePresence(scene, TestHelpers.ParseTail(0x1));
@@ -114,6 +114,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests
114 Assert.That(scene.GetScenePresence(sp.UUID), Is.Null); 114 Assert.That(scene.GetScenePresence(sp.UUID), Is.Null);
115 Assert.That(scene.AuthenticateHandler.GetAgentCircuitData(sp.UUID), Is.Null); 115 Assert.That(scene.AuthenticateHandler.GetAgentCircuitData(sp.UUID), Is.Null);
116 Assert.That(scene.AuthenticateHandler.GetAgentCircuits().Count, Is.EqualTo(0)); 116 Assert.That(scene.AuthenticateHandler.GetAgentCircuits().Count, Is.EqualTo(0));
117
118// TestHelpers.DisableLogging();
117 } 119 }
118 120
119 [Test] 121 [Test]