db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1404888 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthenticationServiceTest.java
Date Fri, 02 Nov 2012 07:46:16 GMT
Author: kahatlen
Date: Fri Nov  2 07:46:16 2012
New Revision: 1404888

URL: http://svn.apache.org/viewvc?rev=1404888&view=rev
Log:
DERBY-5966: Run NativeAuthenticationServiceTest in GMT time zone
to prevent instabilities when changing to or from DST.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthenticationServiceTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthenticationServiceTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthenticationServiceTest.java?rev=1404888&r1=1404887&r2=1404888&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthenticationServiceTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthenticationServiceTest.java
Fri Nov  2 07:46:16 2012
@@ -30,7 +30,6 @@ import java.sql.SQLWarning;
 import java.util.Properties;
 import javax.sql.DataSource;
 
-import junit.extensions.TestSetup;
 import junit.framework.Test;
 import junit.framework.TestSuite;
 import org.apache.derbyTesting.junit.ClasspathSetup;
@@ -41,6 +40,7 @@ import org.apache.derbyTesting.junit.Sec
 import org.apache.derbyTesting.junit.SupportFilesSetup;
 import org.apache.derbyTesting.junit.SystemPropertyTestSetup;
 import org.apache.derbyTesting.junit.TestConfiguration;
+import org.apache.derbyTesting.junit.TimeZoneTestSetup;
 
 /**
  * <p>
@@ -375,7 +375,10 @@ public class NativeAuthenticationService
         suite.addTest( allConfigurations( false ) );
         if ( !JDBC.vmSupportsJSR169() ) { suite.addTest( allConfigurations( true ) ); }
 
-        return suite;
+        // DERBY-5966: Run the test in the GMT time zone to avoid instabilities
+        // around transition to or from DST. Once DERBY-5974 has been fixed, it
+        // should be OK to run in the local time zone.
+        return new TimeZoneTestSetup(suite, "GMT");
     }
     private static  boolean onWindows()
     {



Mime
View raw message