Skip to content

Commit 30fd76e

Browse files
strogiyotecAlmas Abdrazak
andauthored
JAVA-6145 fix encryption test case (#1923)
Co-authored-by: Almas Abdrazak <abdrazak.almas@mongodb.com>
1 parent c956d94 commit 30fd76e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

driver-sync/src/test/functional/com/mongodb/client/AbstractClientSideEncryptionDecryptionEventsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void setUp() {
9696

9797
// Copy ciphertext into a variable named malformedCiphertext. Change the last byte. This will produce an invalid HMAC tag.
9898
byte[] malformedBytes = ciphertext.getData().clone();
99-
malformedBytes[malformedBytes.length - 1] = (byte) (malformedBytes[malformedBytes.length - 1] == 0 ? 0 : 1);
99+
malformedBytes[malformedBytes.length - 1] = (byte) (malformedBytes[malformedBytes.length - 1] == 0 ? 1 : 0);
100100
malformedCiphertext = new BsonBinary(ciphertext.getType(), malformedBytes);
101101

102102
commandListener = new TestCommandListener();

0 commit comments

Comments
 (0)