Add a test to check that ScenePresence and circuit go away when a root agent is closed down
parent
85e07c78fb
commit
e37f8cf902
|
@ -93,15 +93,22 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
|||
region3 = scene3.RegionInfo.RegionHandle;
|
||||
}
|
||||
|
||||
// [Test]
|
||||
// public void TestLogout()
|
||||
// {
|
||||
// TestHelpers.InMethod();
|
||||
//// log4net.Config.XmlConfigurator.Configure();
|
||||
//
|
||||
// TestScene scene = SceneHelpers.SetupScene();
|
||||
// SceneHelpers.
|
||||
// }
|
||||
[Test]
|
||||
public void TestCloseAgent()
|
||||
{
|
||||
TestHelpers.InMethod();
|
||||
// log4net.Config.XmlConfigurator.Configure();
|
||||
|
||||
TestScene scene = SceneHelpers.SetupScene();
|
||||
ScenePresence sp = SceneHelpers.AddScenePresence(scene, TestHelpers.ParseTail(0x1));
|
||||
|
||||
Assert.That(scene.AuthenticateHandler.GetAgentCircuitData(sp.UUID), Is.Not.Null);
|
||||
|
||||
scene.IncomingCloseAgent(sp.UUID);
|
||||
|
||||
Assert.That(scene.GetScenePresence(sp.UUID), Is.Null);
|
||||
Assert.That(scene.AuthenticateHandler.GetAgentCircuitData(sp.UUID), Is.Null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test that if a root agent logs into a region, a child agent is also established in the neighbouring region
|
||||
|
|
Loading…
Reference in New Issue