]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/TestCrossDomainAccess.java
upd: greatly improve speed at all cert-generating test cases
[gigi.git] / tests / org / cacert / gigi / TestCrossDomainAccess.java
index 95f2380fb68c9a338ddce56ca9ad74da09bdd77c..e04235e532ad972e9dfdd420dd6b3c1d457ab7ae 100644 (file)
@@ -51,7 +51,7 @@ public class TestCrossDomainAccess extends ManagedTest {
         String key = generatePEMCSR(kp, "CN=testmail@example.com");
         Certificate c = new Certificate(u, u, Certificate.buildDN("CN", "testmail@example.com"), Digest.SHA256, key, CSRType.CSR, CertificateProfile.getById(1));
         final PrivateKey pk = kp.getPrivate();
-        c.issue(null, "2y", u).waitFor(60000);
+        await(c.issue(null, "2y", u));
 
         URLConnection con = new URL("https://" + ServerConstants.getSecureHostNamePort()).openConnection();
         authenticateClientCert(pk, c.cert(), (HttpURLConnection) con);