tests: windows does not have 1ms time resolution

0.9.1.0-post-fixes
UbitUmarov 2019-10-16 20:16:59 +01:00
parent 0587dd38dc
commit 5971021b5d
1 changed files with 3 additions and 3 deletions

View File

@ -112,10 +112,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
m_engine.PostedEvents.Clear(); m_engine.PostedEvents.Clear();
} }
apiGrp1.LlRequestAgentDataCacheTimeoutMs = 1; apiGrp1.LlRequestAgentDataCacheTimeoutMs = 20;
// Make absolutely sure that we should trigger cache timeout. // Make absolutely sure that we should trigger cache timeout.
Thread.Sleep(apiGrp1.LlRequestAgentDataCacheTimeoutMs + 1); Thread.Sleep(apiGrp1.LlRequestAgentDataCacheTimeoutMs + 50);
{ {
apiGrp1.llRequestAgentData(userId.ToString(), ScriptBaseClass.DATA_ONLINE); apiGrp1.llRequestAgentData(userId.ToString(), ScriptBaseClass.DATA_ONLINE);
@ -135,7 +135,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
m_scene.CloseAgent(userId, false); m_scene.CloseAgent(userId, false);
Thread.Sleep(apiGrp1.LlRequestAgentDataCacheTimeoutMs + 1 + 1); Thread.Sleep(apiGrp1.LlRequestAgentDataCacheTimeoutMs + 50);
{ {
apiGrp1.llRequestAgentData(userId.ToString(), ScriptBaseClass.DATA_ONLINE); apiGrp1.llRequestAgentData(userId.ToString(), ScriptBaseClass.DATA_ONLINE);