From 759fda087123a6814e52018591fba6ea45f06f2b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 19 Nov 2015 02:43:49 +0000 Subject: work around some 'tests' errors: reset the event at start of new test. --- OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs b/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs index 561b271..b956d25 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs @@ -85,6 +85,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine.Tests IConfig startupConfig = configSource.AddConfig("Startup"); startupConfig.Set("DefaultScriptEngine", "XEngine"); + startupConfig.Set("TrustBinaries", "true"); IConfig xEngineConfig = configSource.AddConfig("XEngine"); xEngineConfig.Set("Enabled", "true"); @@ -161,6 +162,7 @@ default EventParams ep = new EventParams("touch_start", new Object[] { new LSL_Types.LSLInteger(1) }, det); + chatEvent.Reset(); xEngineA.PostObjectEvent(soSceneA.LocalId, ep); chatEvent.WaitOne(60000); @@ -169,12 +171,13 @@ default sceneB.EventManager.OnChatFromWorld += (s, m) => { messageReceived = m; chatEvent.Set(); }; + chatEvent.Reset(); // Cross with a negative value soSceneA.AbsolutePosition = new Vector3(128, -10, 20); chatEvent.WaitOne(60000); Assert.That(messageReceived, Is.Not.Null, "No Changed message received."); - Assert.That(messageReceived.Message, Is.Not.Null, "No Changed message received."); + Assert.That(messageReceived.Message, Is.Not.Null, "Changed message without content"); Assert.That(messageReceived.Message, Is.EqualTo("Changed")); // TEST sending event to moved prim and output @@ -190,6 +193,7 @@ default EventParams ep = new EventParams("touch_start", new Object[] { new LSL_Types.LSLInteger(1) }, det); + chatEvent.Reset(); xEngineB.PostObjectEvent(soSceneB.LocalId, ep); chatEvent.WaitOne(60000); -- cgit v1.1