Remove pointless ThreadAbortException catching in a test that isn't run anyway.
parent
26f50eadd1
commit
3d6675784a
|
@ -63,17 +63,11 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
Thread testThread = new Thread(testClass.run);
|
Thread testThread = new Thread(testClass.run);
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Seems kind of redundant to start a thread and then join it, however.. We need to protect against
|
// Seems kind of redundant to start a thread and then join it, however.. We need to protect against
|
||||||
// A thread abort exception in the simulator code.
|
// A thread abort exception in the simulator code.
|
||||||
testThread.Start();
|
testThread.Start();
|
||||||
testThread.Join();
|
testThread.Join();
|
||||||
}
|
|
||||||
catch (ThreadAbortException)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
Assert.That(testClass.results.Result, Is.EqualTo(true), testClass.results.Message);
|
Assert.That(testClass.results.Result, Is.EqualTo(true), testClass.results.Message);
|
||||||
// Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
|
// Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue