From 19c551e815ad783b5da26f316a7a14e67255bacb Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 16 Dec 2015 23:26:51 +0000 Subject: [PATCH] fix test: scene update needs to run after the delay --- .../CoreModules/Avatar/Chat/Tests/ChatModuleTests.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/CoreModules/Avatar/Chat/Tests/ChatModuleTests.cs b/OpenSim/Region/CoreModules/Avatar/Chat/Tests/ChatModuleTests.cs index 0af950463e..a720ad9e66 100644 --- a/OpenSim/Region/CoreModules/Avatar/Chat/Tests/ChatModuleTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Chat/Tests/ChatModuleTests.cs @@ -167,9 +167,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat.Tests sp1Position = new Vector3(30, 128, 20); sp1.AbsolutePosition = sp1Position; + sceneWest.Update(1); sceneEast.Update(1); + Thread.Sleep(12000); // child updates are now time limited + sceneWest.Update(5); + sceneEast.Update(5); - Thread.Sleep(15000); // child updates are now time limited // Check child position is correct. Assert.AreEqual( new Vector3(sp1Position.X + sceneEast.RegionInfo.RegionSizeX, sp1Position.Y, sp1Position.Z), @@ -257,8 +260,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat.Tests sp1.AbsolutePosition = sp1Position; sceneNorth.Update(1); sceneSouth.Update(1); - - Thread.Sleep(15000); // child updates are now time limited + Thread.Sleep(12000); // child updates are now time limited + sceneNorth.Update(5); + sceneSouth.Update(5); // Check child position is correct. Assert.AreEqual(