Skip to content

Commit 733df36

Browse files
tniessenevanlucas
authored andcommitted
test: update references to archived repository
Backport-PR-URL: #18102 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 df8cb40 commit 733df36

14 files changed

+42
-26
lines changed

test/parallel/test-assert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ testAssertionMessage({ a: undefined, b: null }, '{ a: undefined, b: null }');
623623
testAssertionMessage({ a: NaN, b: Infinity, c: -Infinity },
624624
'{ a: NaN, b: Infinity, c: -Infinity }');
625625

626-
// #2893
626+
// https://github.com/nodejs/node-v0.x-archive/issues/2893
627627
{
628628
let threw = false;
629629
try {
@@ -638,7 +638,7 @@ testAssertionMessage({ a: NaN, b: Infinity, c: -Infinity },
638638
assert.ok(threw);
639639
}
640640

641-
// #5292
641+
// https://github.com/nodejs/node-v0.x-archive/issues/5292
642642
try {
643643
assert.strictEqual(1, 2);
644644
} 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,7 +888,8 @@ 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
common.expectsError(
891894
() => Buffer.from('', 'buffer'),
892895
{
@@ -896,8 +899,9 @@ common.expectsError(
896899
}
897900
);
898901

899-
// Regression test for #6111. Constructing a buffer from another buffer
900-
// should a) work, and b) not corrupt the source buffer.
902+
// Regression test for https://github.com/nodejs/node-v0.x-archive/issues/6111.
903+
// Constructing a buffer from another buffer should a) work, and b) not corrupt
904+
// the source buffer.
901905
{
902906
const a = [...Array(128).keys()]; // [0, 1, 2, 3, ... 126, 127]
903907
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
@@ -476,8 +476,9 @@ process.setMaxListeners(256);
476476
}
477477
}
478478

479-
// #5126, "FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData()
480-
// length exceeds max acceptable value"
479+
// https://github.com/nodejs/node-v0.x-archive/issues/5126,
480+
// "FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData() length
481+
// exceeds max acceptable value"
481482
common.expectsError(
482483
() => crypto.randomBytes((-1 >>> 0) + 1),
483484
{

test/parallel/test-crypto.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ testImmutability(tls.getCiphers);
162162
testImmutability(crypto.getHashes);
163163
testImmutability(crypto.getCurves);
164164

165-
// Regression tests for #5725: hex input that's not a power of two should
166-
// throw, not assert in C++ land.
165+
// Regression tests for https://github.com/nodejs/node-v0.x-archive/pull/5725:
166+
// hex input that's not a power of two should throw, not assert in C++ land.
167167
assert.throws(function() {
168168
crypto.createCipher('aes192', 'test').update('0', 'hex');
169169
}, (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
@@ -23,7 +23,8 @@
2323
const common = require('../common');
2424
const dns = require('dns');
2525

26-
// Should not raise assertion error. Issue #7070
26+
// Should not raise assertion error.
27+
// Issue https://github.com/nodejs/node-v0.x-archive/issues/7070
2728
common.expectsError(() => dns.resolveNs([]), // bad name
2829
{
2930
code: 'ERR_INVALID_ARG_TYPE',

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
@@ -93,7 +93,8 @@ ret = execFileSync(process.execPath, args, { encoding: 'utf8' });
9393

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

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

105-
// Verify that stderr is not accessed when stdio = 'ignore' - GH #7966
106+
// Verify that stderr is not accessed when stdio = 'ignore'.
107+
// See https://github.com/nodejs/node-v0.x-archive/issues/7966.
106108
{
107109
assert.throws(function() {
108110
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)