fix test to handle PST->PDT changes.
Xavier Ducrohet [Mon, 11 Mar 2013 21:05:17 +0000 (14:05 -0700)]
Change-Id: Id5197c574c9db3845588b3a2924eb320ff6ae1e1

builder/src/test/java/com/android/builder/signing/KeyStoreHelperTest.java

index d3e453d..bd20b89 100755 (executable)
@@ -74,6 +74,8 @@ public class KeyStoreHelperTest extends TestCase {
 
         // and 30 years from now
         c.add(Calendar.DAY_OF_YEAR, 29 * 365);
+        // remove 1 hour to handle for PST/PDT issue
+        c.add(Calendar.HOUR_OF_DAY, -1);
         assertTrue("30 year expiration failed",
                 certificate.getNotAfter().compareTo(c.getTime()) > 0);