From a72cff28d8454398d4d1767b942f8632315d9919 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 17 May 2021 18:28:37 +0200 Subject: [PATCH] Improve user-id revocation tests --- .../java/org/pgpainless/key/info/UserIdRevocationTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pgpainless-core/src/test/java/org/pgpainless/key/info/UserIdRevocationTest.java b/pgpainless-core/src/test/java/org/pgpainless/key/info/UserIdRevocationTest.java index 27632eb9..78d5c4d1 100644 --- a/pgpainless-core/src/test/java/org/pgpainless/key/info/UserIdRevocationTest.java +++ b/pgpainless-core/src/test/java/org/pgpainless/key/info/UserIdRevocationTest.java @@ -50,7 +50,7 @@ import org.pgpainless.signature.SignatureUtils; public class UserIdRevocationTest { @Test - public void test() throws IOException, PGPException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, InterruptedException { + public void testRevocationWithoutRevocationAttributes() throws PGPException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, InterruptedException { PGPSecretKeyRing secretKeys = PGPainless.generateKeyRing() .withSubKey(KeySpec.getBuilder(KeyType.XDH(XDHCurve._X25519)) .withKeyFlags(KeyFlag.ENCRYPT_COMMS) @@ -63,8 +63,6 @@ public class UserIdRevocationTest { .withoutPassphrase() .build(); - Thread.sleep(1000); - // make a copy with revoked subkey PGPSecretKeyRing revoked = PGPainless.modifyKeyRing(secretKeys) .revokeUserIdOnAllSubkeys("secondary@key.id", new UnprotectedKeysProtector()) @@ -105,8 +103,6 @@ public class UserIdRevocationTest { .withoutPassphrase() .build(); - Thread.sleep(1000); - secretKeys = PGPainless.modifyKeyRing(secretKeys) .revokeUserIdOnAllSubkeys("secondary@key.id", new UnprotectedKeysProtector(), RevocationAttributes.createCertificateRevocation()