another test....

0.9.1.0-post-fixes
UbitUmarov 2019-04-02 17:05:47 +01:00
parent 433e529512
commit e7f0131509
1 changed files with 9 additions and 0 deletions

View File

@ -155,11 +155,15 @@ namespace OpenSim.Region.Framework.Scenes.Tests
sp1SceneA.AbsolutePosition = so1StartPos;
sp1SceneA.HandleAgentRequestSit(sp1SceneA.ControllingClient, sp1SceneA.UUID, so1.UUID, Vector3.Zero);
sceneA.Update(4);
sceneB.Update(4);
// Cross
sceneA.SceneGraph.UpdatePrimGroupPosition(
so1.LocalId, new Vector3(so1StartPos.X, so1StartPos.Y - 20, so1StartPos.Z), sp1SceneA.ControllingClient);
// crossing is async
sceneA.Update(4);
sceneB.Update(4);
Thread.Sleep(500);
SceneObjectGroup so1PostCross;
@ -171,6 +175,9 @@ namespace OpenSim.Region.Framework.Scenes.Tests
TestClient sceneBTc = ((TestClient)sp1SceneBPostCross.ControllingClient);
sceneBTc.CompleteMovement();
sceneA.Update(4);
sceneB.Update(4);
Assert.IsFalse(sp1SceneBPostCross.IsChildAgent, "sp1SceneAPostCross.IsChildAgent unexpectedly true");
Assert.IsTrue(sp1SceneBPostCross.IsSatOnObject);
@ -188,6 +195,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests
sceneB.SceneGraph.UpdatePrimGroupPosition(
so1PostCross.LocalId, new Vector3(so1PostCrossPos.X, so1PostCrossPos.Y + 20, so1PostCrossPos.Z), sp1SceneBPostCross.ControllingClient);
sceneA.Update(4);
sceneB.Update(4);
// crossing is async
Thread.Sleep(500);