aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs
diff options
context:
space:
mode:
authorHomer Horwitz2008-09-18 20:15:04 +0000
committerHomer Horwitz2008-09-18 20:15:04 +0000
commite2564f25639fc873fd95fb14118453659a3504c3 (patch)
treecf72b07729e75e1b5a583f46929eb0c6e27cd638 /OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs
parent- Add Dispose method to IRegionDataStore (diff)
downloadopensim-SC_OLD-e2564f25639fc873fd95fb14118453659a3504c3.zip
opensim-SC_OLD-e2564f25639fc873fd95fb14118453659a3504c3.tar.gz
opensim-SC_OLD-e2564f25639fc873fd95fb14118453659a3504c3.tar.bz2
opensim-SC_OLD-e2564f25639fc873fd95fb14118453659a3504c3.tar.xz
Add a db.Dispose before calling Delete on the SQLite database.
On Windows, you are not able to delete a file while there is still a handle to it open.
Diffstat (limited to 'OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs')
-rw-r--r--OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs
index b399543..89bb2ae 100644
--- a/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs
+++ b/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs
@@ -56,6 +56,7 @@ namespace OpenSim.Data.SQLite.Tests
56 [TestFixtureTearDown] 56 [TestFixtureTearDown]
57 public void Cleanup() 57 public void Cleanup()
58 { 58 {
59 db.Dispose();
59 System.IO.File.Delete(file); 60 System.IO.File.Delete(file);
60 } 61 }
61 } 62 }