* Add a scratch test for removing a client from a scene
parent
890beb442a
commit
00d9c3c2cc
|
@ -82,5 +82,23 @@ namespace OpenSim.Region.Environment.Scenes.Tests
|
||||||
Assert.That(presence, Is.Not.Null, "presence is null");
|
Assert.That(presence, Is.Not.Null, "presence is null");
|
||||||
Assert.That(presence.Firstname, Is.EqualTo(firstName), "First name not same");
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,8 +52,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests
|
||||||
|
|
||||||
AgentCircuitManager acm = new AgentCircuitManager();
|
AgentCircuitManager acm = new AgentCircuitManager();
|
||||||
CommunicationsManager cm = new TestCommunicationsManager();
|
CommunicationsManager cm = new TestCommunicationsManager();
|
||||||
//SceneCommunicationService scs = new SceneCommunicationService(cm);
|
SceneCommunicationService scs = new SceneCommunicationService(cm);
|
||||||
SceneCommunicationService scs = null;
|
|
||||||
StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", "");
|
StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", "");
|
||||||
BaseHttpServer httpServer = new BaseHttpServer(666);
|
BaseHttpServer httpServer = new BaseHttpServer(666);
|
||||||
IConfigSource configSource = new IniConfigSource();
|
IConfigSource configSource = new IniConfigSource();
|
||||||
|
|
Loading…
Reference in New Issue