Reduce AttachmentCipherTest flakiness.

fork-5.53.8
Greyson Parrelli 2020-03-06 10:20:16 -05:00
rodzic de48cf8243
commit a62183c9e0
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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) {