mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 05:48:34 +00:00
Reduce AttachmentCipherTest flakiness.
This commit is contained in:
parent
de48cf8243
commit
a62183c9e0
@ -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…
x
Reference in New Issue
Block a user