minor fix for passphrase test

This commit is contained in:
Vincent Breitmoser
2014-09-15 14:17:39 +02:00
parent e457d4c909
commit 1f9bbff58d
2 changed files with 1 additions and 3 deletions

View File

@@ -955,8 +955,6 @@ public class PgpKeyOperationTest {
CanonicalizedSecretKeyRing secretRing = new CanonicalizedSecretKeyRing(modified.getEncoded(), false, 0);
EditKeyResult result = op.modifySecretKeyRing(secretRing, parcel, otherPassphrase2);
Assert.assertTrue("key modification must succeed", result.success());
Assert.assertTrue("log must contain a warning",
result.getLog().containsWarnings());
Assert.assertTrue("log must contain a failed passphrase change warning",
result.getLog().containsType(LogType.MSG_MF_PASSPHRASE_FAIL));
}