You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2011/03/08 14:24:09 UTC

svn commit: r1079349 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java

Author: kahatlen
Date: Tue Mar  8 13:24:09 2011
New Revision: 1079349

URL: http://svn.apache.org/viewvc?rev=1079349&view=rev
Log:
DERBY-5104: InterruptResilienceTest fails to remove tables in tearDown()

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java?rev=1079349&r1=1079348&r2=1079349&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java Tue Mar  8 13:24:09 2011
@@ -141,10 +141,13 @@ public class InterruptResilienceTest ext
     protected void tearDown()
             throws java.lang.Exception {
 
-        Statement stmt = createStatement();
-        stmt.executeUpdate("drop table t1");
-        stmt.executeUpdate("drop table mtTab");
-        stmt.close();
+        // Forget about uncommitted changes
+        rollback();
+
+        // Drop the tables created in setUp() if they still exist
+        dropTable("t1");
+        dropTable("mtTab");
+        commit();
 
         super.tearDown();
     }