Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/SqLiteDatabaseHelper.cs =================================================================== diff -u -r2ae1c9433c3c28b32105b9778b682b5e512a0f00 -rc2694ebe86aef7b8ed7c9dd05a55eec101958a96 --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/SqLiteDatabaseHelper.cs (.../SqLiteDatabaseHelper.cs) (revision 2ae1c9433c3c28b32105b9778b682b5e512a0f00) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/SqLiteDatabaseHelper.cs (.../SqLiteDatabaseHelper.cs) (revision c2694ebe86aef7b8ed7c9dd05a55eec101958a96) @@ -52,8 +52,15 @@ using (var command = dbContext.CreateCommand()) { dbContext.Open(); - command.CommandText = databaseSchemaQuery; - command.ExecuteNonQuery(); + try + { + command.CommandText = databaseSchemaQuery; + command.ExecuteNonQuery(); + } + finally + { + SQLiteConnection.ClearAllPools(); + } } } } @@ -74,6 +81,10 @@ { Assert.Fail("Precondition failed: creating database file failed due to {0}", exception); } + finally + { + SQLiteConnection.ClearAllPools(); + } } ///