* Reenable assert for the add circuit test
* This checks that a client circuit is established when the udp server is given a use client circuit code packet * And checks that other circuit codes do not exist0.6.0-stable
parent
6101202403
commit
c379c66c7c
|
@ -58,7 +58,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
|
||||||
ClientStackUserSettings userSettings = new ClientStackUserSettings();
|
ClientStackUserSettings userSettings = new ClientStackUserSettings();
|
||||||
|
|
||||||
uint port = 666;
|
uint port = 666;
|
||||||
testLLUDPServer.Initialise(null, ref port, 0, false, userSettings, null, null);
|
testLLUDPServer.Initialise(null, ref port, 0, false, userSettings, null, new AgentCircuitManager());
|
||||||
LLPacketServer packetServer = new LLPacketServer(testLLUDPServer, userSettings);
|
LLPacketServer packetServer = new LLPacketServer(testLLUDPServer, userSettings);
|
||||||
testLLUDPServer.LocalScene = new MockScene();
|
testLLUDPServer.LocalScene = new MockScene();
|
||||||
|
|
||||||
|
@ -73,7 +73,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
|
||||||
testLLUDPServer.LoadReceive(uccp, testEp);
|
testLLUDPServer.LoadReceive(uccp, testEp);
|
||||||
testLLUDPServer.ReceiveData(null);
|
testLLUDPServer.ReceiveData(null);
|
||||||
|
|
||||||
//Assert.IsTrue(testLLUDPServer.HasCircuit(123456));
|
Assert.IsFalse(testLLUDPServer.HasCircuit(101));
|
||||||
|
Assert.IsTrue(testLLUDPServer.HasCircuit(123456));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System.Net.Sockets;
|
||||||
using OpenMetaverse.Packets;
|
using OpenMetaverse.Packets;
|
||||||
using OpenSim.Framework;
|
using OpenSim.Framework;
|
||||||
using OpenSim.Framework.Communications.Cache;
|
using OpenSim.Framework.Communications.Cache;
|
||||||
|
@ -65,6 +66,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void SendPacketTo(byte[] buffer, int size, SocketFlags flags, uint circuitcode)
|
||||||
|
{
|
||||||
|
// Don't do anything just yet
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Load a packet to be received by the LLUDPServer on the next receive call
|
/// Load a packet to be received by the LLUDPServer on the next receive call
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue