Skip to content

test: fix flaky test-webcrypto-encrypt-decrypt-aes

Rodrigo Muino Tomonari requested to merge github/fork/Trott/fix-webcrypto into master

Use Object.assign() to make shallow copies of the object passed to the test functions. The test functions are passed to Promise.all() so execution order is not guaranteed. So using the same object in all of them is a race condition where one test can have side effects in another.

Fixes: https://github.com/nodejs/node/issues/35586

Merge request reports

Loading