diff --git a/test/parallel/test-webcrypto-crypto-job-mode.js b/test/parallel/test-webcrypto-crypto-job-mode.js index 7fd50de44f39b6..327c6a6f154cc4 100644 --- a/test/parallel/test-webcrypto-crypto-job-mode.js +++ b/test/parallel/test-webcrypto-crypto-job-mode.js @@ -163,7 +163,7 @@ async function withObjectPrototypeSetters(names, fn) { { name: 'AES-CBC', iv }, key, Buffer.alloc(16))); - ciphertext[ciphertext.length - 1] ^= 0xff; + ciphertext[0] ^= 0xff; await assert.rejects( subtle.decrypt({ name: 'AES-CBC', iv }, key, ciphertext),