diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs | 11 |
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 | } |