From abfb7bd2cf0e5fdb0a4acbd0b1af71622b4c1307 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Fri, 28 Nov 2008 17:41:45 +0000
Subject: * test: Separate out async deletion methods to test delete and take
copy separately. * The take copy test doesn't currently actually test the
take
---
.../Region/Environment/Scenes/Tests/SceneTestUtils.cs | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
(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 2589368..51be872 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
@@ -116,5 +116,23 @@ namespace OpenSim.Region.Environment.Scenes.Tests
return part;
}
+
+ ///
+ /// Delete a scene object asynchronously
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static void DeleteSceneObjectAsync(
+ TestScene scene, SceneObjectPart part, DeRezAction action, IClientAPI client)
+ {
+ // Turn off the timer on the async sog deleter - we'll crank it by hand within a unit test
+ AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
+ sogd.Enabled = false;
+
+ scene.DeRezObject(client, part.LocalId, UUID.Zero, action, UUID.Zero);
+ sogd.InventoryDeQueueAndDelete();
+ }
}
}
--
cgit v1.1