aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/Tests/BasicCircuitTests.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-12-08 22:00:59 +0000
committerJustin Clark-Casey (justincc)2011-12-08 22:00:59 +0000
commit50eebb5cba3bc4143115fca0e163ebdf3fc4dc60 (patch)
treec513f15dd42abd010bc3a872905971acfb3b1dd2 /OpenSim/Region/ClientStack/Linden/UDP/Tests/BasicCircuitTests.cs
parentExtend TestAddClient() to check that the first packet received is an ack packet (diff)
downloadopensim-SC-50eebb5cba3bc4143115fca0e163ebdf3fc4dc60.zip
opensim-SC-50eebb5cba3bc4143115fca0e163ebdf3fc4dc60.tar.gz
opensim-SC-50eebb5cba3bc4143115fca0e163ebdf3fc4dc60.tar.bz2
opensim-SC-50eebb5cba3bc4143115fca0e163ebdf3fc4dc60.tar.xz
Don't reply with an ack packet if the client is not authorized.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/Tests/BasicCircuitTests.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/Tests/BasicCircuitTests.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/Tests/BasicCircuitTests.cs b/OpenSim/Region/ClientStack/Linden/UDP/Tests/BasicCircuitTests.cs
index 1457194..a575e36 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/Tests/BasicCircuitTests.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/Tests/BasicCircuitTests.cs
@@ -202,10 +202,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
202 ScenePresence sp = scene.GetScenePresence(myAgentUuid); 202 ScenePresence sp = scene.GetScenePresence(myAgentUuid);
203 Assert.That(sp.UUID, Is.EqualTo(myAgentUuid)); 203 Assert.That(sp.UUID, Is.EqualTo(myAgentUuid));
204 204
205 // FIXME: We're still replying to an ack when the client is not authorized, which is not correct behaviour. 205 Assert.That(llUdpServer.PacketsSent.Count, Is.EqualTo(1));
206 Assert.That(llUdpServer.PacketsSent.Count, Is.EqualTo(2));
207 206
208 Packet packet = llUdpServer.PacketsSent[1]; 207 Packet packet = llUdpServer.PacketsSent[0];
209 Assert.That(packet, Is.InstanceOf(typeof(PacketAckPacket))); 208 Assert.That(packet, Is.InstanceOf(typeof(PacketAckPacket)));
210 209
211 PacketAckPacket ackPacket = packet as PacketAckPacket; 210 PacketAckPacket ackPacket = packet as PacketAckPacket;