* test: Add assert checking that the circuit which trigger the socket exception has been closed

0.6.0-stable
Justin Clarke Casey 2008-11-06 19:52:06 +00:00
parent 29691a3d36
commit 427a80bba5
2 changed files with 4 additions and 1 deletions

View File

@ -179,13 +179,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
/// <summary>
///
/// Close a client circuit only
/// </summary>
/// <param name="circuitcode"></param>
public virtual void CloseCircuit(uint circuitcode)
{
m_networkHandler.RemoveClientCircuit(circuitcode);
// XXX: Why is this commented out? Possibly because close mechanisms are so tangled right now
//m_scene.ClientManager.CloseAllAgents(circuitcode);
}

View File

@ -284,6 +284,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
testLLUDPServer.LoadReceive(BuildTestObjectNamePacket(2, "packet3"), epB);
testLLUDPServer.ReceiveData(null);
Assert.IsFalse(testLLUDPServer.HasCircuit(circuitCodeA));
Assert.That(testLLPacketServer.GetTotalPacketsReceived(), Is.EqualTo(3));
Assert.That(testLLPacketServer.GetPacketsReceivedFor(PacketType.ObjectName), Is.EqualTo(3));
}