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/SQLiteUserTest.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs') diff --git a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs index d4aaf99..d9e2867 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs @@ -55,6 +55,7 @@ namespace OpenSim.Data.SQLite.Tests [TestFixtureTearDown] public void Cleanup() { + db.Dispose(); System.IO.File.Delete(file); } } -- cgit v1.1