From 9657efb1d4d672cb3782649fc72d885c4f241942 Mon Sep 17 00:00:00 2001 From: Muffin <muffin@mailbox.org> Date: Sat, 10 Feb 2024 01:42:16 -0600 Subject: [PATCH] Shorten Base64Util test cases 1000000 items is very slow; the tests take about 4 seconds on my machine. --- test/unit/util_base64.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/util_base64.js b/test/unit/util_base64.js index b62a228d8b1..f43aa148591 100644 --- a/test/unit/util_base64.js +++ b/test/unit/util_base64.js @@ -26,7 +26,7 @@ test('round trips', t => { new Uint8Array(0), new Uint8Array([10, 90, 0, 255, 255, 255, 10, 2]), new Uint8Array(10000), - new Uint8Array(1000000) + new Uint8Array(100000) ]; for (const uint8array of data) { const uint8ToBase64 = Base64Util.uint8ArrayToBase64(uint8array);