diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAutopilotTests.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAutopilotTests.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAutopilotTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAutopilotTests.cs index e5c847e..90c5197 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAutopilotTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAutopilotTests.cs | |||
@@ -97,7 +97,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
97 | Assert.That(sp.AbsolutePosition.Z, Is.EqualTo(startPos.Z)); | 97 | Assert.That(sp.AbsolutePosition.Z, Is.EqualTo(startPos.Z)); |
98 | Assert.That(sp.AbsolutePosition.Z, Is.LessThan(targetPos.X)); | 98 | Assert.That(sp.AbsolutePosition.Z, Is.LessThan(targetPos.X)); |
99 | 99 | ||
100 | m_scene.Update(10); | 100 | m_scene.Update(50); |
101 | 101 | ||
102 | double distanceToTarget = Util.GetDistanceTo(sp.AbsolutePosition, targetPos); | 102 | double distanceToTarget = Util.GetDistanceTo(sp.AbsolutePosition, targetPos); |
103 | Assert.That(distanceToTarget, Is.LessThan(1), "Avatar not within 1 unit of target position on first move"); | 103 | Assert.That(distanceToTarget, Is.LessThan(1), "Avatar not within 1 unit of target position on first move"); |
@@ -121,7 +121,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
121 | Assert.That(sp.AbsolutePosition.Y, Is.EqualTo(startPos.Y)); | 121 | Assert.That(sp.AbsolutePosition.Y, Is.EqualTo(startPos.Y)); |
122 | Assert.That(sp.AbsolutePosition.Z, Is.EqualTo(startPos.Z)); | 122 | Assert.That(sp.AbsolutePosition.Z, Is.EqualTo(startPos.Z)); |
123 | 123 | ||
124 | m_scene.Update(10); | 124 | m_scene.Update(50); |
125 | 125 | ||
126 | distanceToTarget = Util.GetDistanceTo(sp.AbsolutePosition, targetPos); | 126 | distanceToTarget = Util.GetDistanceTo(sp.AbsolutePosition, targetPos); |
127 | Assert.That(distanceToTarget, Is.LessThan(1), "Avatar not within 1 unit of target position on second move"); | 127 | Assert.That(distanceToTarget, Is.LessThan(1), "Avatar not within 1 unit of target position on second move"); |