aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-11-28 17:41:45 +0000
committerJustin Clarke Casey2008-11-28 17:41:45 +0000
commitabfb7bd2cf0e5fdb0a4acbd0b1af71622b4c1307 (patch)
tree67895fb7b163e272c9f7ac206815baa7d37c8bf1 /OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
parent* refactor: Replace derez destiation magic numbers with an enumeration (diff)
downloadopensim-SC_OLD-abfb7bd2cf0e5fdb0a4acbd0b1af71622b4c1307.zip
opensim-SC_OLD-abfb7bd2cf0e5fdb0a4acbd0b1af71622b4c1307.tar.gz
opensim-SC_OLD-abfb7bd2cf0e5fdb0a4acbd0b1af71622b4c1307.tar.bz2
opensim-SC_OLD-abfb7bd2cf0e5fdb0a4acbd0b1af71622b4c1307.tar.xz
* test: Separate out async deletion methods to test delete and take copy separately.
* The take copy test doesn't currently actually test the take
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs18
1 files changed, 18 insertions, 0 deletions
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
116 116
117 return part; 117 return part;
118 } 118 }
119
120 /// <summary>
121 /// Delete a scene object asynchronously
122 /// </summary>
123 /// <param name="scene"></param>
124 /// <param name="part"></param>
125 /// <param name="action"></param>
126 /// <param name="client"></param>
127 public static void DeleteSceneObjectAsync(
128 TestScene scene, SceneObjectPart part, DeRezAction action, IClientAPI client)
129 {
130 // Turn off the timer on the async sog deleter - we'll crank it by hand within a unit test
131 AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
132 sogd.Enabled = false;
133
134 scene.DeRezObject(client, part.LocalId, UUID.Zero, action, UUID.Zero);
135 sogd.InventoryDeQueueAndDelete();
136 }
119 } 137 }
120} 138}