mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Strengthen the tests for the possibility that SetUpFixture does not run in the beginning.
This commit is contained in:
@@ -44,6 +44,13 @@ namespace OpenSim.Tests.Permissions
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
{
|
||||
// In case we're dealing with some older version of nunit
|
||||
if (Common.TheInstance == null)
|
||||
{
|
||||
Common c = new Common();
|
||||
c.SetUp();
|
||||
}
|
||||
|
||||
Common.TheInstance.DeleteObjectsFolders();
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,12 @@ namespace OpenSim.Tests.Permissions
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
{
|
||||
// In case we're dealing with some older version of nunit
|
||||
if (Common.TheInstance == null)
|
||||
{
|
||||
Common c = new Common();
|
||||
c.SetUp();
|
||||
}
|
||||
Common.TheInstance.DeleteObjectsFolders();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user