aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/World
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-09-08 20:59:52 +0100
committerJustin Clark-Casey (justincc)2011-09-08 20:59:52 +0100
commit96a3b68086c44dfe35018cc1eaf20be5cba1b0b1 (patch)
tree351be03301b4acd1522289cd02aae612cf1daa5c /OpenSim/Region/OptionalModules/World
parentUse scene presence agent id for rezzed object ownership rather than item owner. (diff)
downloadopensim-SC_OLD-96a3b68086c44dfe35018cc1eaf20be5cba1b0b1.zip
opensim-SC_OLD-96a3b68086c44dfe35018cc1eaf20be5cba1b0b1.tar.gz
opensim-SC_OLD-96a3b68086c44dfe35018cc1eaf20be5cba1b0b1.tar.bz2
opensim-SC_OLD-96a3b68086c44dfe35018cc1eaf20be5cba1b0b1.tar.xz
Remember to set and unset the fire and forget method at the top of the attachment and npc tests
Diffstat (limited to 'OpenSim/Region/OptionalModules/World')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
index 3bd43b4..018cf88 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
@@ -50,13 +50,21 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
50 [TestFixture] 50 [TestFixture]
51 public class NPCModuleTests 51 public class NPCModuleTests
52 { 52 {
53 [SetUp] 53 [TestFixtureSetUp]
54 public void Init() 54 public void FixtureInit()
55 { 55 {
56 // Don't allow tests to be bamboozled by asynchronous events. Execute everything on the same thread. 56 // Don't allow tests to be bamboozled by asynchronous events. Execute everything on the same thread.
57 Util.FireAndForgetMethod = FireAndForgetMethod.None; 57 Util.FireAndForgetMethod = FireAndForgetMethod.None;
58 } 58 }
59 59
60 [TestFixtureTearDown]
61 public void TearDown()
62 {
63 // We must set this back afterwards, otherwise later tests will fail since they're expecting multiple
64 // threads. Possibly, later tests should be rewritten not to worry about such things.
65 Util.FireAndForgetMethod = Util.DefaultFireAndForgetMethod;
66 }
67
60 [Test] 68 [Test]
61 public void TestCreate() 69 public void TestCreate()
62 { 70 {