instrument most of the tests with a new InMethod function that may help us figure

out where that pesky deadlock is during test runs.
This commit is contained in:
Sean Dague
2009-05-07 19:07:08 +00:00
parent 84815ab271
commit ce0a84cbc0
15 changed files with 91 additions and 17 deletions

View File

@@ -34,6 +34,7 @@ using OpenSim.Framework.Communications.Cache;
using OpenSim.Region.Communications.Local;
using OpenSim.Tests.Common.Mock;
using OpenSim.Tests.Common.Setup;
using OpenSim.Tests.Common;
namespace OpenSim.Framework.Communications.Tests
{
@@ -43,6 +44,8 @@ namespace OpenSim.Framework.Communications.Tests
[Test]
public void TestGetUserDetails()
{
TestHelper.InMethod();
UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000002");
string firstName = "Bill";
string lastName = "Bailey";
@@ -109,6 +112,8 @@ namespace OpenSim.Framework.Communications.Tests
[Test]
public void TestFetchInventory()
{
TestHelper.InMethod();
TestCommunicationsManager commsManager = new TestCommunicationsManager();
CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager);
@@ -118,6 +123,8 @@ namespace OpenSim.Framework.Communications.Tests
[Test]
public void TestGetChildFolder()
{
TestHelper.InMethod();
TestCommunicationsManager commsManager = new TestCommunicationsManager();
CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager);
@@ -132,6 +139,8 @@ namespace OpenSim.Framework.Communications.Tests
[Test]
public void TestCreateFolder()
{
TestHelper.InMethod();
TestCommunicationsManager commsManager = new TestCommunicationsManager();
IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin;
@@ -159,6 +168,8 @@ namespace OpenSim.Framework.Communications.Tests
[Test]
public void TestUpdateFolder()
{
TestHelper.InMethod();
TestCommunicationsManager commsManager = new TestCommunicationsManager();
IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin;
@@ -213,6 +224,8 @@ namespace OpenSim.Framework.Communications.Tests
[Test]
public void TestMoveFolder()
{
TestHelper.InMethod();
TestCommunicationsManager commsManager = new TestCommunicationsManager();
IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin;
@@ -244,6 +257,7 @@ namespace OpenSim.Framework.Communications.Tests
[Test]
public void TestPurgeFolder()
{
TestHelper.InMethod();
//log4net.Config.XmlConfigurator.Configure();
TestCommunicationsManager commsManager = new TestCommunicationsManager();