aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/OpenSimTestCase.cs
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-11-03 21:44:39 +1000
committerDavid Walter Seikel2016-11-03 21:44:39 +1000
commit134f86e8d5c414409631b25b8c6f0ee45fbd8631 (patch)
tree216b89d3fb89acfb81be1e440c25c41ab09fa96d /OpenSim/Tests/Common/OpenSimTestCase.cs
parentMore changing to production grid. Double oops. (diff)
downloadopensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.zip
opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.gz
opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.bz2
opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.xz
Initial update to OpenSim 0.8.2.1 source code.
Diffstat (limited to 'OpenSim/Tests/Common/OpenSimTestCase.cs')
-rw-r--r--OpenSim/Tests/Common/OpenSimTestCase.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Tests/Common/OpenSimTestCase.cs b/OpenSim/Tests/Common/OpenSimTestCase.cs
index 8c40923..9fea348 100644
--- a/OpenSim/Tests/Common/OpenSimTestCase.cs
+++ b/OpenSim/Tests/Common/OpenSimTestCase.cs
@@ -27,6 +27,8 @@
27 27
28using System; 28using System;
29using NUnit.Framework; 29using NUnit.Framework;
30using OpenSim.Framework;
31using OpenSim.Framework.Servers;
30 32
31namespace OpenSim.Tests.Common 33namespace OpenSim.Tests.Common
32{ 34{
@@ -36,11 +38,18 @@ namespace OpenSim.Tests.Common
36 [SetUp] 38 [SetUp]
37 public virtual void SetUp() 39 public virtual void SetUp()
38 { 40 {
39// TestHelpers.InMethod(); 41 //TestHelpers.InMethod();
40 // Disable logging for each test so that one where logging is enabled doesn't cause all subsequent tests 42 // Disable logging for each test so that one where logging is enabled doesn't cause all subsequent tests
41 // to have logging on if it failed with an exception. 43 // to have logging on if it failed with an exception.
42 TestHelpers.DisableLogging(); 44 TestHelpers.DisableLogging();
45
46 // This is an unfortunate bit of clean up we have to do because MainServer manages things through static
47 // variables and the VM is not restarted between tests.
48 if (MainServer.Instance != null)
49 {
50 MainServer.RemoveHttpServer(MainServer.Instance.Port);
51// MainServer.Instance = null;
52 }
43 } 53 }
44 } 54 }
45} 55} \ No newline at end of file
46