1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-09 18:29:39 +02:00

Reenable disabled test and add workaround for broken one

This commit is contained in:
Paul Schaub 2025-02-11 16:32:37 +01:00
parent 070879ee02
commit ac541b0902
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,6 @@ import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import java.io.IOException;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import sop.ByteArrayAndResult;
import sop.DecryptionResult;
@ -16,7 +15,6 @@ import sop.EncryptionResult;
import sop.ReadyWithResult;
import sop.testsuite.assertions.VerificationListAssert;
@Disabled("Carol is an ElGamal key, which are no longer supported.")
public class CarolKeySignEncryptRoundtripTest {
private static final String CAROL_KEY = "-----BEGIN PGP PRIVATE KEY BLOCK-----\n" +

View file

@ -4,6 +4,7 @@
package sop.testsuite.pgpainless.operation;
import static java.lang.Thread.sleep;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
@ -28,6 +29,11 @@ public class PGPainlessRevokeKeyTest extends RevokeKeyTest {
super.revokeUnprotectedKey(sop);
byte[] key = sop.generateKey().generate().getBytes();
try {
sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
byte[] revokedKey = sop.revokeKey().keys(key).getBytes();
PGPKeyRing certificate = PGPainless.readKeyRing().keyRing(revokedKey);