mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 10:19:39 +02:00
Reenable disabled test and add workaround for broken one
This commit is contained in:
parent
070879ee02
commit
ac541b0902
2 changed files with 6 additions and 2 deletions
|
@ -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" +
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue