* test: Add assert checking that the circuit which trigger the socket exception has been closed
parent
29691a3d36
commit
427a80bba5
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -283,6 +283,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
|
|||
testLLUDPServer.LoadReceiveWithBeginException(epA);
|
||||
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));
|
||||
|
|
Loading…
Reference in New Issue