Skip to content

Commit 5155d8e

Browse files
tniessenMylesBorins
authored andcommitted
test: update references to archived repository
Backport-PR-URL: #19119 PR-URL: #17924 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 3df0570 commit 5155d8e

14 files changed

+42
-26
lines changed

test/parallel/test-assert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ testAssertionMessage({ a: undefined, b: null }, '{ a: undefined, b: null }');
586586
testAssertionMessage({ a: NaN, b: Infinity, c: -Infinity },
587587
'{ a: NaN, b: Infinity, c: -Infinity }');
588588

589-
// #2893
589+
// https://github.com/nodejs/node-v0.x-archive/issues/2893
590590
{
591591
let threw = false;
592592
try {
@@ -601,7 +601,7 @@ testAssertionMessage({ a: NaN, b: Infinity, c: -Infinity },
601601
assert.ok(threw);
602602
}
603603

604-
// #5292
604+
// https://github.com/nodejs/node-v0.x-archive/issues/5292
605605
try {
606606
assert.strictEqual(1, 2);
607607
} catch (e) {

test/parallel/test-buffer-alloc.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,8 @@ assert.strictEqual('<Buffer 81 a3 66 6f 6f a3 62 61 72>', x.inspect());
636636
}
637637

638638
{
639-
// #1210 Test UTF-8 string includes null character
639+
// https://github.com/nodejs/node-v0.x-archive/pull/1210
640+
// Test UTF-8 string includes null character
640641
let buf = Buffer.from('\0');
641642
assert.strictEqual(buf.length, 1);
642643
buf = Buffer.from('\0\0');
@@ -660,7 +661,8 @@ assert.strictEqual('<Buffer 81 a3 66 6f 6f a3 62 61 72>', x.inspect());
660661
}
661662

662663
{
663-
// #243 Test write() with maxLength
664+
// https://github.com/nodejs/node-v0.x-archive/issues/243
665+
// Test write() with maxLength
664666
const buf = Buffer.allocUnsafe(4);
665667
buf.fill(0xFF);
666668
assert.strictEqual(buf.write('abcd', 1, 2, 'utf8'), 2);
@@ -886,12 +888,14 @@ assert.throws(() => Buffer.allocUnsafe(8).writeFloatLE(0.0, -1), RangeError);
886888
assert.strictEqual(buf.readIntBE(0, 5), -0x0012000000);
887889
}
888890

889-
// Regression test for #5482: should throw but not assert in C++ land.
891+
// Regression test for https://github.com/nodejs/node-v0.x-archive/issues/5482:
892+
// should throw but not assert in C++ land.
890893
assert.throws(() => Buffer.from('', 'buffer'),
891894
/^TypeError: "encoding" must be a valid string encoding$/);
892895

893-
// Regression test for #6111. Constructing a buffer from another buffer
894-
// should a) work, and b) not corrupt the source buffer.
896+
// Regression test for https://github.com/nodejs/node-v0.x-archive/issues/6111.
897+
// Constructing a buffer from another buffer should a) work, and b) not corrupt
898+
// the source buffer.
895899
{
896900
const a = [...Array(128).keys()]; // [0, 1, 2, 3, ... 126, 127]
897901
const b = Buffer.from(a);

test/parallel/test-cluster-worker-init.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if (cluster.isMaster) {
4242
worker.send(msg);
4343
});
4444
} else {
45-
// GH #7998
45+
// https://github.com/nodejs/node-v0.x-archive/issues/7998
4646
cluster.worker.on('message', (message) => {
4747
process.send(message === msg);
4848
});

test/parallel/test-crypto-binary-default.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ fileStream.on('close', common.mustCall(function() {
411411
);
412412
}));
413413

414-
// Issue #2227: unknown digest method should throw an error.
414+
// Unknown digest method should throw an error:
415+
// https://github.com/nodejs/node-v0.x-archive/issues/2227
415416
assert.throws(function() {
416417
crypto.createHash('xyzzy');
417418
}, /^Error: Digest method not supported$/);

test/parallel/test-crypto-cipher-decipher.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,16 @@ testCipher1(Buffer.from('MySecretKey123'));
7070
testCipher2('0123456789abcdef');
7171
testCipher2(Buffer.from('0123456789abcdef'));
7272

73-
// Base64 padding regression test, see #4837.
73+
// Base64 padding regression test, see
74+
// https://github.com/nodejs/node-v0.x-archive/issues/4837.
7475
{
7576
const c = crypto.createCipher('aes-256-cbc', 'secret');
7677
const s = c.update('test', 'utf8', 'base64') + c.final('base64');
7778
assert.strictEqual(s, '375oxUQCIocvxmC5At+rvA==');
7879
}
7980

8081
// Calling Cipher.final() or Decipher.final() twice should error but
81-
// not assert. See #4886.
82+
// not assert. See https://github.com/nodejs/node-v0.x-archive/issues/4886.
8283
{
8384
const c = crypto.createCipher('aes-256-cbc', 'secret');
8485
try { c.final('xxx'); } catch (e) { /* Ignore. */ }
@@ -90,14 +91,16 @@ testCipher2(Buffer.from('0123456789abcdef'));
9091
try { d.final('xxx'); } catch (e) { /* Ignore. */ }
9192
}
9293

93-
// Regression test for #5482: string to Cipher#update() should not assert.
94+
// Regression test for https://github.com/nodejs/node-v0.x-archive/issues/5482:
95+
// string to Cipher#update() should not assert.
9496
{
9597
const c = crypto.createCipher('aes192', '0123456789abcdef');
9698
c.update('update');
9799
c.final();
98100
}
99101

100-
// #5655 regression tests, 'utf-8' and 'utf8' are identical.
102+
// https://github.com/nodejs/node-v0.x-archive/issues/5655 regression tests,
103+
// 'utf-8' and 'utf8' are identical.
101104
{
102105
let c = crypto.createCipher('aes192', '0123456789abcdef');
103106
c.update('update', ''); // Defaults to "utf8".

test/parallel/test-crypto-hash.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ fileStream.on('close', common.mustCall(function() {
105105
'Test SHA1 of sample.png');
106106
}));
107107

108-
// Issue #2227: unknown digest method should throw an error.
108+
// Issue https://github.com/nodejs/node-v0.x-archive/issues/2227: unknown digest
109+
// method should throw an error.
109110
assert.throws(function() {
110111
crypto.createHash('xyzzy');
111112
}, /Digest method not supported/);

test/parallel/test-crypto-random.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,9 @@ const expectedErrorRegexp = /^TypeError: size must be a number >= 0$/;
260260
}
261261
}
262262

263-
// #5126, "FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData()
264-
// length exceeds max acceptable value"
263+
// https://github.com/nodejs/node-v0.x-archive/issues/5126,
264+
// "FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData() length
265+
// exceeds max acceptable value"
265266
assert.throws(function() {
266267
crypto.randomBytes((-1 >>> 0) + 1);
267268
}, /^TypeError: size must be a number >= 0$/);

test/parallel/test-crypto.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ testImmutability(tls.getCiphers);
159159
testImmutability(crypto.getHashes);
160160
testImmutability(crypto.getCurves);
161161

162-
// Regression tests for #5725: hex input that's not a power of two should
163-
// throw, not assert in C++ land.
162+
// Regression tests for https://github.com/nodejs/node-v0.x-archive/pull/5725:
163+
// hex input that's not a power of two should throw, not assert in C++ land.
164164
assert.throws(function() {
165165
crypto.createCipher('aes192', 'test').update('0', 'hex');
166166
}, (err) => {

test/parallel/test-dgram-ref.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
const common = require('../common');
2424
const dgram = require('dgram');
2525

26-
// should not hang, see #1282
26+
// should not hang, see https://github.com/nodejs/node-v0.x-archive/issues/1282
2727
dgram.createSocket('udp4');
2828
dgram.createSocket('udp6');
2929

test/parallel/test-dns-regress-7070.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ require('../common');
2424
const assert = require('assert');
2525
const dns = require('dns');
2626

27-
// Should not raise assertion error. Issue #7070
27+
// Should not raise assertion error.
28+
// Issue https://github.com/nodejs/node-v0.x-archive/issues/7070
2829
assert.throws(() => dns.resolveNs([]), // bad name
2930
/^Error: "name" argument must be a string$/);
3031
assert.throws(() => dns.resolveNs(''), // bad callback

test/parallel/test-timers-unref.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ const check_unref = setInterval(() => {
7171
setInterval(() => timeout.unref(), SHORT_TIME);
7272
}
7373

74-
// Should not assert on args.Holder()->InternalFieldCount() > 0. See #4261.
74+
// Should not assert on args.Holder()->InternalFieldCount() > 0.
75+
// See https://github.com/nodejs/node-v0.x-archive/issues/4261.
7576
{
7677
const t = setInterval(() => {}, 1);
7778
process.nextTick(t.unref.bind({}));

test/parallel/test-tls-set-encoding.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ server.listen(0, function() {
6363
client.on('close', function() {
6464
// readyState is deprecated but we want to make
6565
// sure this isn't triggering an assert in lib/net.js
66-
// See issue #1069.
66+
// See https://github.com/nodejs/node-v0.x-archive/issues/1069.
6767
assert.strictEqual('closed', client.readyState);
6868

6969
// Confirming the buffer string is encoded in ASCII

test/sequential/test-child-process-execsync.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ ret = execFileSync(process.execPath, args, { encoding: 'utf8' });
9494

9595
assert.strictEqual(ret, `${msg}\n`);
9696

97-
// Verify that the cwd option works - GH #7824
97+
// Verify that the cwd option works.
98+
// See https://github.com/nodejs/node-v0.x-archive/issues/7824.
9899
{
99100
const cwd = common.rootDir;
100101
const cmd = common.isWindows ? 'echo %cd%' : 'pwd';
@@ -103,7 +104,8 @@ assert.strictEqual(ret, `${msg}\n`);
103104
assert.strictEqual(response.toString().trim(), cwd);
104105
}
105106

106-
// Verify that stderr is not accessed when stdio = 'ignore' - GH #7966
107+
// Verify that stderr is not accessed when stdio = 'ignore'.
108+
// See https://github.com/nodejs/node-v0.x-archive/issues/7966.
107109
{
108110
assert.throws(function() {
109111
execSync('exit -1', { stdio: 'ignore' });

test/sequential/test-module-loading.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ try {
222222
}
223223

224224
{
225-
// #1357 Loading JSON files with require()
225+
// Loading JSON files with require()
226+
// See https://github.com/nodejs/node-v0.x-archive/issues/1357.
226227
const json = require('../fixtures/packages/main/package.json');
227228
assert.deepStrictEqual(json, {
228229
name: 'package-name',
@@ -337,7 +338,8 @@ process.on('exit', function() {
337338
});
338339

339340

340-
// #1440 Loading files with a byte order marker.
341+
// Loading files with a byte order marker.
342+
// See https://github.com/nodejs/node-v0.x-archive/issues/1440.
341343
assert.strictEqual(require('../fixtures/utf8-bom.js'), 42);
342344
assert.strictEqual(require('../fixtures/utf8-bom.json'), 42);
343345

0 commit comments

Comments
 (0)