* Add a scratch test for removing a client from a scene

0.6.1-post-fixes
Justin Clarke Casey 2008-11-20 17:27:45 +00:00
parent 890beb442a
commit 00d9c3c2cc
2 changed files with 19 additions and 2 deletions

View File

@ -82,5 +82,23 @@ namespace OpenSim.Region.Environment.Scenes.Tests
Assert.That(presence, Is.Not.Null, "presence is null");
Assert.That(presence.Firstname, Is.EqualTo(firstName), "First name not same");
}
/// <summary>
/// Test removing an uncrossed root agent from a scene.
/// </summary>
[Test]
public void TestRemoveRootAgent()
{
Scene scene = SceneTestUtils.SetupScene();
UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000001");
SceneTestUtils.AddRootAgent(scene, agentId);
scene.RemoveClient(agentId);
ScenePresence presence = scene.GetScenePresence(agentId);
Assert.That(presence, Is.Null, "presence is not null");
}
}
}

View File

@ -52,8 +52,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests
AgentCircuitManager acm = new AgentCircuitManager();
CommunicationsManager cm = new TestCommunicationsManager();
//SceneCommunicationService scs = new SceneCommunicationService(cm);
SceneCommunicationService scs = null;
SceneCommunicationService scs = new SceneCommunicationService(cm);
StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", "");
BaseHttpServer httpServer = new BaseHttpServer(666);
IConfigSource configSource = new IniConfigSource();