Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Roldan Betancort2012-03-12 07:46:08 -0400
committerVictor Roldan Betancort2012-03-12 07:46:08 -0400
commitd73991527172d6bfb16cdaf9af25f43356e616f6 (patch)
treef83f3cc6daabce4f0c5d05e1bd3cebf512a6d536
parent7abd77e62535377cef7c8a7f62645da0b74400f8 (diff)
downloadcdo-bugs/323006.tar.gz
cdo-bugs/323006.tar.xz
cdo-bugs/323006.zip
[Bug 323006] [DB] Various PostgreSQL test failuresbugs/323006
If restarting, do not drop all tables (fixes durable locking tests)
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/PostgresqlConfig.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/PostgresqlConfig.java b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/PostgresqlConfig.java
index ce24c02960..35a9486bea 100644
--- a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/PostgresqlConfig.java
+++ b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/PostgresqlConfig.java
@@ -84,8 +84,10 @@ public class PostgresqlConfig extends DBConfig
{
OM.LOG.warn(ex.getMessage());
}
-
- dropDatabase();
+ if (!isRestarting())
+ {
+ dropDatabase();
+ }
return dataSource;
}

Back to the top