diff options
author | Diva Canto | 2009-09-24 18:48:38 -0700 |
---|---|---|
committer | Diva Canto | 2009-09-24 18:48:38 -0700 |
commit | eb0aa6a7f4d170a7f773686fb3993ca9d50c9294 (patch) | |
tree | d3c926a783d8c6ddcdef6c3e24f4346a22b1999b /OpenSim/Tests | |
parent | Deleted the meaningless console commands on the GridService. Will need to add... (diff) | |
download | opensim-SC_OLD-eb0aa6a7f4d170a7f773686fb3993ca9d50c9294.zip opensim-SC_OLD-eb0aa6a7f4d170a7f773686fb3993ca9d50c9294.tar.gz opensim-SC_OLD-eb0aa6a7f4d170a7f773686fb3993ca9d50c9294.tar.bz2 opensim-SC_OLD-eb0aa6a7f4d170a7f773686fb3993ca9d50c9294.tar.xz |
Make the grid client deregister the test regions at the end, so that they don't stay in the DB.
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Clients/Grid/GridClient.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Tests/Clients/Grid/GridClient.cs b/OpenSim/Tests/Clients/Grid/GridClient.cs index 155f38e..c56ebc3 100644 --- a/OpenSim/Tests/Clients/Grid/GridClient.cs +++ b/OpenSim/Tests/Clients/Grid/GridClient.cs | |||
@@ -137,6 +137,26 @@ namespace OpenSim.Tests.Clients.GridClient | |||
137 | else | 137 | else |
138 | Console.WriteLine("[GRID CLIENT]: GetRegionRange returned " + regions.Count + " regions"); | 138 | Console.WriteLine("[GRID CLIENT]: GetRegionRange returned " + regions.Count + " regions"); |
139 | 139 | ||
140 | // Deregister them all | ||
141 | Console.WriteLine("[GRID CLIENT]: *** Deregistering region 1"); | ||
142 | success = m_Connector.DeregisterRegion(r1.RegionID); | ||
143 | if (success) | ||
144 | Console.WriteLine("[GRID CLIENT]: Successfully deregistered region 1"); | ||
145 | else | ||
146 | Console.WriteLine("[GRID CLIENT]: region 1 failed to deregister"); | ||
147 | Console.WriteLine("[GRID CLIENT]: *** Deregistering region 2"); | ||
148 | success = m_Connector.DeregisterRegion(r2.RegionID); | ||
149 | if (success) | ||
150 | Console.WriteLine("[GRID CLIENT]: Successfully deregistered region 2"); | ||
151 | else | ||
152 | Console.WriteLine("[GRID CLIENT]: region 2 failed to deregister"); | ||
153 | Console.WriteLine("[GRID CLIENT]: *** Deregistering region 3"); | ||
154 | success = m_Connector.DeregisterRegion(r3.RegionID); | ||
155 | if (success) | ||
156 | Console.WriteLine("[GRID CLIENT]: Successfully deregistered region 3"); | ||
157 | else | ||
158 | Console.WriteLine("[GRID CLIENT]: region 3 failed to deregister"); | ||
159 | |||
140 | } | 160 | } |
141 | 161 | ||
142 | private static GridRegion CreateRegion(string name, uint xcell, uint ycell) | 162 | private static GridRegion CreateRegion(string name, uint xcell, uint ycell) |