From 2ba14f82fe8247c76577bf5e646464548267612e Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 17 Nov 2015 06:23:57 +0000 Subject: [PATCH] work around some 'tests' errors: a new event queue has a few null events --- .../Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs index 9a42bacc59..f2f65934fd 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs @@ -98,6 +98,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups.Tests 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)); // Console.WriteLine("Response [{0}]", (string)eventsResponse["str_response_string"]);