From e261c974704098e5d1238ef800ef49d3ec7e75b8 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 21 Nov 2008 18:17:01 +0000 Subject: * 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 --- OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs') 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 /// /// /// - public static void AddRootAgent(Scene scene, UUID agentId) + public static IClientAPI AddRootAgent(Scene scene, UUID agentId) { string firstName = "testfirstname"; @@ -92,7 +92,10 @@ namespace OpenSim.Region.Environment.Scenes.Tests agent.CapsPath = "http://wibble.com"; scene.NewUserConnection(agent); - scene.AddNewClient(new TestClient(agent), false); + IClientAPI client = new TestClient(agent); + scene.AddNewClient(client, false); + + return client; } /// -- cgit v1.1