Reduce AttachmentCipherTest flakiness.
This commit is contained in:
parent
de48cf8243
commit
a62183c9e0
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ public class AttachmentCipherTest extends TestCase {
|
|||
EncryptResult encryptResult = encryptData(plaintextInput, key);
|
||||
byte[] badMacCiphertext = Arrays.copyOf(encryptResult.ciphertext, encryptResult.ciphertext.length);
|
||||
|
||||
badMacCiphertext[badMacCiphertext.length - 1] = 0;
|
||||
badMacCiphertext[badMacCiphertext.length - 1] += 1;
|
||||
|
||||
cipherFile = writeToFile(badMacCiphertext);
|
||||
|
||||
|
@ -191,7 +191,7 @@ public class AttachmentCipherTest extends TestCase {
|
|||
EncryptResult encryptResult = encryptData(plaintextInput, expandPackKey(packKey));
|
||||
byte[] badMacCiphertext = Arrays.copyOf(encryptResult.ciphertext, encryptResult.ciphertext.length);
|
||||
|
||||
badMacCiphertext[badMacCiphertext.length - 1] = 0;
|
||||
badMacCiphertext[badMacCiphertext.length - 1] += 1;
|
||||
|
||||
AttachmentCipherInputStream.createForStickerData(badMacCiphertext, packKey);
|
||||
} catch (InvalidMessageException e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue