From d5bb500d0f21997c1b7a658c06f7f437be29fa78 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 16 Apr 2019 08:26:39 -0700 Subject: [PATCH] test: fix test-benchmark-buffer Using `len=2` in test-benchmark-buffer was resulting in a `RangeError` in buffer-base64-encode.js. Change to `len=256` which works in all buffer benchmarks. PR-URL: https://github.com/nodejs/node/pull/27260 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca Reviewed-By: Refael Ackermann --- test/benchmark/test-benchmark-buffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/benchmark/test-benchmark-buffer.js b/test/benchmark/test-benchmark-buffer.js index 171f755647d21f..d3085796e1a651 100644 --- a/test/benchmark/test-benchmark-buffer.js +++ b/test/benchmark/test-benchmark-buffer.js @@ -13,7 +13,7 @@ runBenchmark('buffers', 'charsPerLine=6', 'encoding=utf8', 'endian=BE', - 'len=2', + 'len=256', 'linesCount=1', 'method=', 'n=1',