aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs')
-rw-r--r--OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs b/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
index c299452..5e6b7f9 100644
--- a/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
+++ b/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
@@ -50,6 +50,10 @@ namespace OpenSim.Data.MySQL.Tests
50 public void Init() 50 public void Init()
51 { 51 {
52 SuperInit(); 52 SuperInit();
53 // If we manage to connect to the database with the user
54 // and password above it is our test database, and run
55 // these tests. If anything goes wrong, ignore these
56 // tests.
53 try 57 try
54 { 58 {
55 database = new MySQLManager(connect); 59 database = new MySQLManager(connect);
@@ -66,6 +70,10 @@ namespace OpenSim.Data.MySQL.Tests
66 [TestFixtureTearDown] 70 [TestFixtureTearDown]
67 public void Cleanup() 71 public void Cleanup()
68 { 72 {
73 if (db != null)
74 {
75 db.Dispose();
76 }
69 if (database != null) 77 if (database != null)
70 { 78 {
71 database.ExecuteSql("drop table migrations"); 79 database.ExecuteSql("drop table migrations");