From 2cc326214968cff07a25eba5023d3260df7a0f0d Mon Sep 17 00:00:00 2001 From: Daniel Huigens Date: Tue, 15 Oct 2019 18:38:02 +0200 Subject: [PATCH] Fix test failing on high-core-count systems due to AEAD concurrency --- test/general/openpgp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/general/openpgp.js b/test/general/openpgp.js index ea07066d..7db40b99 100644 --- a/test/general/openpgp.js +++ b/test/general/openpgp.js @@ -1696,7 +1696,7 @@ describe('OpenPGP.js public api tests', function() { expect(e.message).to.match(/Ascii armor integrity check on message failed/); expect(stepReached).to.equal( j === 0 ? 0 : - openpgp.config.aead_chunk_size_byte === 0 || (!openpgp.config.aead_protect && openpgp.config.allow_unauthenticated_stream) ? 2 : + (openpgp.config.aead_chunk_size_byte === 0 && (j === 2 || openpgp.util.detectNode() || openpgp.util.getHardwareConcurrency() < 8)) || (!openpgp.config.aead_protect && openpgp.config.allow_unauthenticated_stream) ? 2 : 1 ); return;