From 5741b39b05cc58cc716298055d7d303d08a9755f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9e=20Kooi?= Date: Wed, 20 Jun 2018 14:05:19 +0200 Subject: [PATCH] Reset INSPECT_MAX_BYTES after buffer-inspect test. --- test/node/test-buffer-inspect.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/node/test-buffer-inspect.js b/test/node/test-buffer-inspect.js index 477d6ba..8c40433 100644 --- a/test/node/test-buffer-inspect.js +++ b/test/node/test-buffer-inspect.js @@ -27,6 +27,7 @@ const assert = require('assert'); const util = require('util'); const buffer = require('../../'); +var defaultMaxBytes = buffer.INSPECT_MAX_BYTES; buffer.INSPECT_MAX_BYTES = 2; let b = Buffer.allocUnsafe(4); @@ -58,3 +59,5 @@ assert.strictEqual(util.inspect(s), expected); b.inspect = undefined; assert.strictEqual(util.inspect(b), expected); + +buffer.INSPECT_MAX_BYTES = defaultMaxBytes; -- 2.34.1