From e2564f25639fc873fd95fb14118453659a3504c3 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Thu, 18 Sep 2008 20:15:04 +0000 Subject: 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. --- OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs') 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 [TestFixtureTearDown] public void Cleanup() { + db.Dispose(); System.IO.File.Delete(file); } } -- cgit v1.1