diff options
author | Justin Clark-Casey (justincc) | 2011-08-03 23:06:18 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-03 23:06:18 +0100 |
commit | 21d8a6b0e8f1480a5ac75ae4e76d01d4ae2fb13f (patch) | |
tree | ae6c73a8df0edc046c7af858db7e47ddd7682cfc /OpenSim/Region/OptionalModules | |
parent | Add passing but incomplete NPC move regression test (diff) | |
download | opensim-SC-21d8a6b0e8f1480a5ac75ae4e76d01d4ae2fb13f.zip opensim-SC-21d8a6b0e8f1480a5ac75ae4e76d01d4ae2fb13f.tar.gz opensim-SC-21d8a6b0e8f1480a5ac75ae4e76d01d4ae2fb13f.tar.bz2 opensim-SC-21d8a6b0e8f1480a5ac75ae4e76d01d4ae2fb13f.tar.xz |
extend move test to check one beat of the simulator without actually asking the npc to move.
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs index 46e39ef..4e2b5f1 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs | |||
@@ -87,7 +87,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests | |||
87 | public void TestMove() | 87 | public void TestMove() |
88 | { | 88 | { |
89 | TestHelper.InMethod(); | 89 | TestHelper.InMethod(); |
90 | log4net.Config.XmlConfigurator.Configure(); | 90 | // log4net.Config.XmlConfigurator.Configure(); |
91 | 91 | ||
92 | IConfigSource config = new IniConfigSource(); | 92 | IConfigSource config = new IniConfigSource(); |
93 | 93 | ||
@@ -106,6 +106,12 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests | |||
106 | ScenePresence npc = scene.GetScenePresence(npcId); | 106 | ScenePresence npc = scene.GetScenePresence(npcId); |
107 | Assert.That(npc.AbsolutePosition, Is.EqualTo(startPos)); | 107 | Assert.That(npc.AbsolutePosition, Is.EqualTo(startPos)); |
108 | 108 | ||
109 | // For now, we'll make the scene presence fly to simplify this test, but this needs to change. | ||
110 | npc.PhysicsActor.Flying = true; | ||
111 | |||
112 | scene.Update(); | ||
113 | Assert.That(npc.AbsolutePosition, Is.EqualTo(startPos)); | ||
114 | |||
109 | // Not yet complete | 115 | // Not yet complete |
110 | } | 116 | } |
111 | } | 117 | } |