SHA256
1
0

- c-ares-fixes.patch: add additional backports for unit test fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs20?expand=0&rev=59
This commit is contained in:
Adam Majer 2024-01-08 15:38:28 +00:00 committed by Git OBS Bridge
parent 2e660ab888
commit ef09b2db99
3 changed files with 13 additions and 4 deletions

View File

@ -11,7 +11,7 @@ Index: node-v20.10.0/test/parallel/test-dns-resolveany-bad-ancount.js
server.on('message', common.mustCall((msg, { address, port }) => {
const parsed = dnstools.parseDNSPacket(msg);
@@ -18,16 +20,20 @@ server.on('message', common.mustCall((ms
@@ -18,25 +20,29 @@ server.on('message', common.mustCall((ms
questions: parsed.questions,
answers: { type: 'A', address: '1.2.3.4', ttl: 123, domain },
});
@ -34,13 +34,16 @@ Index: node-v20.10.0/test/parallel/test-dns-resolveany-bad-ancount.js
+ resolverPromises.resolveAny('example.org')
.then(common.mustNotCall())
.catch(common.expectsError({
code: 'EBADRESP',
@@ -35,7 +41,7 @@ server.bind(0, common.mustCall(async ()
- code: 'EBADRESP',
+ code: /^(?:EBADRESP|ETIMEOUT)$/,
syscall: 'queryAny',
hostname: 'example.org'
}));
- dns.resolveAny('example.org', common.mustCall((err) => {
- assert.strictEqual(err.code, 'EBADRESP');
+ resolver.resolveAny('example.org', common.mustCall((err) => {
assert.strictEqual(err.code, 'EBADRESP');
+ assert.notStrictEqual(err.code, 'SUCCESS');
assert.strictEqual(err.syscall, 'queryAny');
assert.strictEqual(err.hostname, 'example.org');
const descriptor = Object.getOwnPropertyDescriptor(err, 'message');

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 8 15:36:04 UTC 2024 - Adam Majer <adam.majer@suse.de>
- c-ares-fixes.patch: add additional backports for unit test fixes
-------------------------------------------------------------------
Tue Jan 2 16:14:58 UTC 2024 - Adam Majer <adam.majer@suse.de>

View File

@ -384,6 +384,7 @@ Provides: bundled(llhttp) = 8.1.1
Provides: bundled(ngtcp2) = 0.8.1
Provides: bundled(base64) = 0.5.0
Provides: bundled(simdutf) = 3.2.18
# bundled url-ada parser, not ada
Provides: bundled(ada) = 2.7.2