* Another attempt at fixing the random spurious test error.

* This time it might be the listening socket thread from HttpServer aborting with a non blocking thread abort exception.   Hopefully calling Stop() on MainServer.Instance will solve that.
This commit is contained in:
Teravus Ovares (Dan Olivares)
2009-08-26 21:05:46 -04:00
parent b7041d7adf
commit 6f077d5e5f
6 changed files with 58 additions and 8 deletions

View File

@@ -378,6 +378,12 @@ namespace OpenSim.Region.Framework.Scenes.Tests
Assert.That(presence.HasAttachments(), Is.True, "Presence has not received new objects");
}
[TearDown]
public void TearDown()
{
if (MainServer.Instance != null) MainServer.Instance.Stop();
}
public static string GetRandomCapsObjectPath()
{
TestHelper.InMethod();

View File

@@ -78,6 +78,17 @@ namespace OpenSim.Region.Framework.Scenes.Tests
// Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
}
[TearDown]
public void TearDown()
{
try
{
if (MainServer.Instance != null) MainServer.Instance.Stop();
}
catch (NullReferenceException)
{ }
}
}
public class ThreadRunResults