Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2022-04-20 01:46:37 +0300
committerGitHub <noreply@github.com>2022-04-20 01:46:37 +0300
commit1e761654d3d93e4568d1228b92d1f3a09e92d078 (patch)
treeb003499fede78612e88e01c82f591b7d7ae503bd /test
parent51fd5db4c18da2685b3825fb5617f7f968859299 (diff)
doc: consolidate use of multiple-byte units
Refs: https://en.wikipedia.org/wiki/Byte#Multiple-byte_units PR-URL: https://github.com/nodejs/node/pull/42587 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/common/README.md2
-rw-r--r--test/parallel/test-crypto-scrypt.js2
-rw-r--r--test/parallel/test-fs-util-validateoffsetlength.js2
-rw-r--r--test/parallel/test-http2-max-session-memory-leak.js2
-rw-r--r--test/parallel/test-tls-securepair-leak.js4
5 files changed, 6 insertions, 6 deletions
diff --git a/test/common/README.md b/test/common/README.md
index 858e782eb36..af29f2e1bf1 100644
--- a/test/common/README.md
+++ b/test/common/README.md
@@ -59,7 +59,7 @@ On non-Windows platforms, this always returns `true`.
### `createZeroFilledFile(filename)`
-Creates a 10 MB file of all null characters.
+Creates a 10 MiB file of all null characters.
### `enoughTestMem`
diff --git a/test/parallel/test-crypto-scrypt.js b/test/parallel/test-crypto-scrypt.js
index 5f860c75bbe..9e5e46164fb 100644
--- a/test/parallel/test-crypto-scrypt.js
+++ b/test/parallel/test-crypto-scrypt.js
@@ -24,7 +24,7 @@ const good = [
},
// Test vectors from https://tools.ietf.org/html/rfc7914#page-13 that
// should pass. Note that the test vector with N=1048576 is omitted
- // because it takes too long to complete and uses over 1 GB of memory.
+ // because it takes too long to complete and uses over 1 GiB of memory.
{
pass: '',
salt: '',
diff --git a/test/parallel/test-fs-util-validateoffsetlength.js b/test/parallel/test-fs-util-validateoffsetlength.js
index 28e087d33ae..bda20f86683 100644
--- a/test/parallel/test-fs-util-validateoffsetlength.js
+++ b/test/parallel/test-fs-util-validateoffsetlength.js
@@ -50,7 +50,7 @@ const {
);
}
-// Most platforms don't allow reads or writes >= 2 GB.
+// Most platforms don't allow reads or writes >= 2 GiB.
// See https://github.com/libuv/libuv/pull/1501.
const kIoMaxLength = 2 ** 31 - 1;
diff --git a/test/parallel/test-http2-max-session-memory-leak.js b/test/parallel/test-http2-max-session-memory-leak.js
index b066ca80bc5..476c605783c 100644
--- a/test/parallel/test-http2-max-session-memory-leak.js
+++ b/test/parallel/test-http2-max-session-memory-leak.js
@@ -9,7 +9,7 @@ const http2 = require('http2');
// mechanism.
const bodyLength = 8192;
-const maxSessionMemory = 1; // 1 MB
+const maxSessionMemory = 1; // 1 MiB
const requestCount = 1000;
const server = http2.createServer({ maxSessionMemory });
diff --git a/test/parallel/test-tls-securepair-leak.js b/test/parallel/test-tls-securepair-leak.js
index 4cd927d64ac..98bdcde76ec 100644
--- a/test/parallel/test-tls-securepair-leak.js
+++ b/test/parallel/test-tls-securepair-leak.js
@@ -20,9 +20,9 @@ setImmediate(() => {
global.gc();
const after = process.memoryUsage().external;
- // It's not an exact science but a SecurePair grows .external by about 45 kB.
+ // It's not an exact science but a SecurePair grows .external by about 45 KiB.
// Unless AdjustAmountOfExternalAllocatedMemory() is called on destruction,
- // 10,000 instances make it grow by well over 400 MB. Allow for some slop
+ // 10,000 instances make it grow by well over 400 MiB. Allow for some slop
// because objects like buffers also affect the external limit.
assert(after - before < 25 << 20);
});