From 6a356aff1380e79d67738c5b43aa2b5fee76600d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 11 Jun 2024 12:41:44 +0100 Subject: chore: sync up Node.js test files for v20.11.1 (#24066) Co-authored-by: Yoshiya Hinosawa --- tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js') diff --git a/tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js b/tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js index 27ccf90db..a679f26bb 100644 --- a/tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js +++ b/tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js @@ -12,9 +12,8 @@ const assert = require('assert'); const { SlowBuffer } = require('buffer'); const msg = { - code: 'ERR_INVALID_ARG_VALUE', + code: 'ERR_OUT_OF_RANGE', name: 'RangeError', - message: /^The argument 'size' is invalid\. Received [^"]*$/ }; // Test that negative Buffer length inputs throw errors. -- cgit v1.2.3