SHA256
1
0

Accepting request 1120765 from devel:languages:nodejs

- fix_ci_tests.patch: adapt for openssl 3.1.4

OBS-URL: https://build.opensuse.org/request/show/1120765
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nodejs20?expand=0&rev=16
This commit is contained in:
Ana Guerrero 2023-10-27 20:27:01 +00:00 committed by Git OBS Bridge
commit 276dbe71d8
3 changed files with 12 additions and 5 deletions

View File

@ -85,12 +85,14 @@ Index: node-v20.8.1/test/parallel/test-crypto-dh.js
===================================================================
--- node-v20.8.1.orig/test/parallel/test-crypto-dh.js
+++ node-v20.8.1/test/parallel/test-crypto-dh.js
@@ -89,7 +89,7 @@ const crypto = require('crypto');
@@ -87,9 +87,7 @@ const crypto = require('crypto');
assert.throws(() => {
dh3.computeSecret('');
}, { message: common.hasOpenSSL3 ?
'error:02800080:Diffie-Hellman routines::invalid secret' :
- }, { message: common.hasOpenSSL3 ?
- 'error:02800080:Diffie-Hellman routines::invalid secret' :
- 'Supplied key is too small' });
+ /(error:05066066:Diffie-Hellman routines:compute_key:invalid public key|Supplied key is too small)/ });
+ }, /(error:02800080:Diffie-Hellman routines::invalid secret|error:05066066:Diffie-Hellman routines:compute_key:invalid public key|Supplied key is too small)/);
}
// Through a fluke of history, g=0 defaults to DH_GENERATOR (2).

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Oct 27 09:10:38 UTC 2023 - Adam Majer <adam.majer@suse.de>
- fix_ci_tests.patch: adapt for openssl 3.1.4
--------------------------------------------------------------------
Tue Oct 24 11:21:41 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -678,7 +678,7 @@ echo "`grep node-v%{version}.tar.xz %{S:1} | head -n1 | cut -c1-64` %{S:0}" | s
%setup -q -n node-%{version}
%endif
%if %{node_version_number} <= 16
%if %{node_version_number} == 16
tar zxf %{S:12}
%endif