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

LSLKeyTest
UbitUmarov 2015-11-17 06:23:57 +00:00
parent bbfeca4b0c
commit 2ba14f82fe
1 changed files with 7 additions and 0 deletions

View File

@ -98,6 +98,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups.Tests
Hashtable eventsResponse = eqgm.GetEvents(UUID.Zero, sp.UUID); Hashtable eventsResponse = eqgm.GetEvents(UUID.Zero, sp.UUID);
if((int)eventsResponse["int_response_code"] != (int)HttpStatusCode.OK)
{
eventsResponse = eqgm.GetEvents(UUID.Zero, sp.UUID);
if((int)eventsResponse["int_response_code"] != (int)HttpStatusCode.OK)
eventsResponse = eqgm.GetEvents(UUID.Zero, sp.UUID);
}
Assert.That((int)eventsResponse["int_response_code"], Is.EqualTo((int)HttpStatusCode.OK)); Assert.That((int)eventsResponse["int_response_code"], Is.EqualTo((int)HttpStatusCode.OK));
// Console.WriteLine("Response [{0}]", (string)eventsResponse["str_response_string"]); // Console.WriteLine("Response [{0}]", (string)eventsResponse["str_response_string"]);