work around some 'tests' errors: a new event queue has a few null events

LSLKeyTest
UbitUmarov 2015-11-17 06:19:45 +00:00
parent 16d158f2f1
commit bbfeca4b0c
1 changed files with 9 additions and 0 deletions

View File

@ -126,6 +126,15 @@ namespace OpenSim.Region.ClientStack.Linden.Tests
Hashtable eventsResponse = m_eqgMod.GetEvents(UUID.Zero, sp.UUID);
// initial queue as null events
eventsResponse = m_eqgMod.GetEvents(UUID.Zero, sp.UUID);
if((int)eventsResponse["int_response_code"] != (int)HttpStatusCode.OK)
{
eventsResponse = m_eqgMod.GetEvents(UUID.Zero, sp.UUID);
if((int)eventsResponse["int_response_code"] != (int)HttpStatusCode.OK)
eventsResponse = m_eqgMod.GetEvents(UUID.Zero, sp.UUID);
}
Assert.That((int)eventsResponse["int_response_code"], Is.EqualTo((int)HttpStatusCode.OK));
// Console.WriteLine("Response [{0}]", (string)eventsResponse["str_response_string"]);