From 285ae803e2eb17ddde64653ec00cacb6a188fb9b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 9 Oct 2008 18:00:38 +0000 Subject: * minor: initialize udp server in unit test --- OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs | 6 ------ .../Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs | 10 ++++++++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs index 691afb3..5d3dba0 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs @@ -41,12 +41,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP protected readonly ILLClientStackNetworkHandler m_networkHandler; protected IScene m_scene; - - //private readonly ClientManager m_clientManager = new ClientManager(); - //public ClientManager ClientManager - //{ - // get { return m_clientManager; } - //} /// /// Tweakable user settings diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs index 5d8c79d..c821ca2 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs @@ -25,7 +25,10 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using NUnit.Framework; +using OpenSim.Region.ClientStack; +using OpenSim.Region.ClientStack.LindenUDP; namespace OpenSim.Region.ClientStack.LindenUDP.Tests { @@ -36,9 +39,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests public class BasicCircuitTests { [Test] - public void TestHello() + public void TestAddClient() { - // Nowt here yet + IClientNetworkServer llUdpServer = new LLUDPServer(); + + uint port = 666; + llUdpServer.Initialise(null, ref port, -1, false, new ClientStackUserSettings(), null, null); } } } -- cgit v1.1