Skip to content

Commit 8951fcf

Browse files
committed
test: update references to archived repository
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 ce22d6f commit 8951fcf

14 files changed

+42
-26
lines changed

test/parallel/test-assert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ testAssertionMessage({ a: undefined, b: null }, '{ a: undefined, b: null }');
601601
testAssertionMessage({ a: NaN, b: Infinity, c: -Infinity },
602602
'{ a: NaN, b: Infinity, c: -Infinity }');
603603

604-
// #2893
604+
// https://github.com/nodejs/node-v0.x-archive/issues/2893
605605
{
606606
let threw = false;
607607
try {
@@ -617,7 +617,7 @@ testAssertionMessage({ a: NaN, b: Infinity, c: -Infinity },
617617
assert.ok(threw);
618618
}
619619

620-
// #5292
620+
// https://github.com/nodejs/node-v0.x-archive/issues/5292
621621
try {
622622
assert.strictEqual(1, 2);
623623
} catch (e) {

test/parallel/test-buffer-alloc.js

Lines changed: 9 additions & 5 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,16 @@ testCipher2(Buffer.from('0123456789abcdef'));
145145
});
146146
}
147147

148-
// Base64 padding regression test, see #4837.
148+
// Base64 padding regression test, see
149+
// https://github.com/nodejs/node-v0.x-archive/issues/4837.
149150
{
150151
const c = crypto.createCipher('aes-256-cbc', 'secret');
151152
const s = c.update('test', 'utf8', 'base64') + c.final('base64');
152153
assert.strictEqual(s, '375oxUQCIocvxmC5At+rvA==');
153154
}
154155

155156
// Calling Cipher.final() or Decipher.final() twice should error but
156-
// not assert. See #4886.
157+
// not assert. See https://github.com/nodejs/node-v0.x-archive/issues/4886.
157158
{
158159
const c = crypto.createCipher('aes-256-cbc', 'secret');
159160
try { c.final('xxx'); } catch (e) { /* Ignore. */ }
@@ -165,14 +166,16 @@ testCipher2(Buffer.from('0123456789abcdef'));
165166
try { d.final('xxx'); } catch (e) { /* Ignore. */ }
166167
}
167168

168-
// Regression test for #5482: string to Cipher#update() should not assert.
169+
// Regression test for https://github.com/nodejs/node-v0.x-archive/issues/5482:
170+
// string to Cipher#update() should not assert.
169171
{
170172
const c = crypto.createCipher('aes192', '0123456789abcdef');
171173
c.update('update');
172174
c.final();
173175
}
174176

175-
// #5655 regression tests, 'utf-8' and 'utf8' are identical.
177+
// https://github.com/nodejs/node-v0.x-archive/issues/5655 regression tests,
178+
// 'utf-8' and 'utf8' are identical.
176179
{
177180
let c = crypto.createCipher('aes192', '0123456789abcdef');
178181
c.update('update', ''); // Defaults to "utf8".

test/parallel/test-crypto-hash.js

Lines changed: 2 additions & 1 deletion
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 2 deletions
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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ try {
214214
}
215215

216216
{
217-
// #1357 Loading JSON files with require()
217+
// Loading JSON files with require()
218+
// See https://github.com/nodejs/node-v0.x-archive/issues/1357.
218219
const json = require('../fixtures/packages/main/package.json');
219220
assert.deepStrictEqual(json, {
220221
name: 'package-name',
@@ -329,7 +330,8 @@ process.on('exit', function() {
329330
});
330331

331332

332-
// #1440 Loading files with a byte order marker.
333+
// Loading files with a byte order marker.
334+
// See https://github.com/nodejs/node-v0.x-archive/issues/1440.
333335
assert.strictEqual(require('../fixtures/utf8-bom.js'), 42);
334336
assert.strictEqual(require('../fixtures/utf8-bom.json'), 42);
335337

0 commit comments

Comments
 (0)