db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1079349 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java
Date Tue, 08 Mar 2011 13:24:09 GMT
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();
     }



Mime
View raw message