diff options
author | Justin Clarke Casey | 2008-11-21 18:17:01 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-21 18:17:01 +0000 |
commit | e261c974704098e5d1238ef800ef49d3ec7e75b8 (patch) | |
tree | 8caa0b40509a2dc70fca1061537573ac148cbcc6 /OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs | |
parent | * minor: Remove comparison of UUID struct against null picked up as a warning (diff) | |
download | opensim-SC-e261c974704098e5d1238ef800ef49d3ec7e75b8.zip opensim-SC-e261c974704098e5d1238ef800ef49d3ec7e75b8.tar.gz opensim-SC-e261c974704098e5d1238ef800ef49d3ec7e75b8.tar.bz2 opensim-SC-e261c974704098e5d1238ef800ef49d3ec7e75b8.tar.xz |
* On delete to inventory, actually remove the group from the scene before the async stage.
* Last time I accidentally left the existing code in place that merely wiped the group from the client (but not the scene)
* Put in an incomplete 'delete object o inventory' test to assert that this happens
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs index 31fe0b6..2589368 100644 --- a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs +++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs | |||
@@ -75,7 +75,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests | |||
75 | /// <param name="scene"></param> | 75 | /// <param name="scene"></param> |
76 | /// <param name="agentId"></param> | 76 | /// <param name="agentId"></param> |
77 | /// <returns></returns> | 77 | /// <returns></returns> |
78 | public static void AddRootAgent(Scene scene, UUID agentId) | 78 | public static IClientAPI AddRootAgent(Scene scene, UUID agentId) |
79 | { | 79 | { |
80 | string firstName = "testfirstname"; | 80 | string firstName = "testfirstname"; |
81 | 81 | ||
@@ -92,7 +92,10 @@ namespace OpenSim.Region.Environment.Scenes.Tests | |||
92 | agent.CapsPath = "http://wibble.com"; | 92 | agent.CapsPath = "http://wibble.com"; |
93 | 93 | ||
94 | scene.NewUserConnection(agent); | 94 | scene.NewUserConnection(agent); |
95 | scene.AddNewClient(new TestClient(agent), false); | 95 | IClientAPI client = new TestClient(agent); |
96 | scene.AddNewClient(client, false); | ||
97 | |||
98 | return client; | ||
96 | } | 99 | } |
97 | 100 | ||
98 | /// <summary> | 101 | /// <summary> |