diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-11-10 14:34:52 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-11-10 14:34:52 +0100 |
commit | f7f21fa6927eab5fcff7d51d3618d2c48bd4e29d (patch) | |
tree | 737af5de6b4ac1070390f0c7d93523a00f69af6d | |
parent | a16b9d17da1349ab1f4fe517984ea36aef34e923 (diff) | |
download | forums-f7f21fa6927eab5fcff7d51d3618d2c48bd4e29d.tar forums-f7f21fa6927eab5fcff7d51d3618d2c48bd4e29d.tar.gz forums-f7f21fa6927eab5fcff7d51d3618d2c48bd4e29d.tar.bz2 forums-f7f21fa6927eab5fcff7d51d3618d2c48bd4e29d.tar.xz forums-f7f21fa6927eab5fcff7d51d3618d2c48bd4e29d.zip |
[ticket/11186] Database unit tests fail on windows using sqlite2
The problem is, that we try to recreate the db and reconnect to it, while the
old connection is still hold. To resolve this, we just drop all tables and
recreate the tables instead of the hole db.
PHPBB3-11186
-rw-r--r-- | tests/test_framework/phpbb_database_test_connection_manager.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/test_framework/phpbb_database_test_connection_manager.php b/tests/test_framework/phpbb_database_test_connection_manager.php index 25e0972f42..a43215bcf2 100644 --- a/tests/test_framework/phpbb_database_test_connection_manager.php +++ b/tests/test_framework/phpbb_database_test_connection_manager.php @@ -166,12 +166,6 @@ class phpbb_database_test_connection_manager switch ($this->config['dbms']) { case 'sqlite': - if (file_exists($this->config['dbhost'])) - { - unlink($this->config['dbhost']); - } - break; - case 'firebird': $this->connect(); // Drop all of the tables |