aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-10-30 19:42:25 +0000
committerJustin Clarke Casey2008-10-30 19:42:25 +0000
commitbc1b69b2fd26a6f81d7d3d17cbc5ec557b009f08 (patch)
tree9876af8ef6d98f8ba37728c521584bf87d2a61db /OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs
parent* minor: remove mono warning (diff)
downloadopensim-SC_OLD-bc1b69b2fd26a6f81d7d3d17cbc5ec557b009f08.zip
opensim-SC_OLD-bc1b69b2fd26a6f81d7d3d17cbc5ec557b009f08.tar.gz
opensim-SC_OLD-bc1b69b2fd26a6f81d7d3d17cbc5ec557b009f08.tar.bz2
opensim-SC_OLD-bc1b69b2fd26a6f81d7d3d17cbc5ec557b009f08.tar.xz
* test: fill out circuit teardown test
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs
index f00ddf3..72c831e 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs
@@ -157,11 +157,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
157 /// </summary> 157 /// </summary>
158 public void TestRemoveClient() 158 public void TestRemoveClient()
159 { 159 {
160 uint myCircuitCode = 123457;
161
160 TestLLUDPServer testLLUDPServer; 162 TestLLUDPServer testLLUDPServer;
161 AgentCircuitManager acm; 163 AgentCircuitManager acm;
162 SetupStack(out testLLUDPServer, out acm); 164 SetupStack(out testLLUDPServer, out acm);
163 165
164 AddClient(123457, testLLUDPServer, acm); 166 AddClient(myCircuitCode, testLLUDPServer, acm);
167
168 testLLUDPServer.RemoveClientCircuit(myCircuitCode);
169 Assert.IsFalse(testLLUDPServer.HasCircuit(myCircuitCode));
170
171 // Check that removing the circuit again doesn't have any bad effects
172 testLLUDPServer.RemoveClientCircuit(myCircuitCode);
173 Assert.IsFalse(testLLUDPServer.HasCircuit(myCircuitCode));
165 } 174 }
166 } 175 }
167} 176}