From 19471b052d32946dcddffa12cbff2e7bbb1694fb Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 17 Jul 2017 22:32:27 -0700 Subject: [PATCH] test: move test-fs-largefile to pummel test-fs-largefile was disabled. It was fixed in bbf74fb but left in disabled because it generates a 5Gb file. However, gibfahn had the sensible suggestion of moving it to the pummel directory. Which is what this change does. In pummel, lint rules are applied, so this does necessitate changing a pair of `var` declarations to `const`. Refs: https://github.com/nodejs/node/commit/bbf74fb87b2f8273e1d93e949f9c840b12ce4805 --- test/{disabled => pummel}/test-fs-largefile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename test/{disabled => pummel}/test-fs-largefile.js (95%) diff --git a/test/disabled/test-fs-largefile.js b/test/pummel/test-fs-largefile.js similarity index 95% rename from test/disabled/test-fs-largefile.js rename to test/pummel/test-fs-largefile.js index e10cc7e361f4b2..b0cb24a60fe4d6 100644 --- a/test/disabled/test-fs-largefile.js +++ b/test/pummel/test-fs-largefile.js @@ -35,9 +35,9 @@ const message = 'Large File'; fs.truncateSync(fd, offset); assert.strictEqual(fs.statSync(filepath).size, offset); -var writeBuf = Buffer.from(message); +const writeBuf = Buffer.from(message); fs.writeSync(fd, writeBuf, 0, writeBuf.length, offset); -var readBuf = Buffer.allocUnsafe(writeBuf.length); +const readBuf = Buffer.allocUnsafe(writeBuf.length); fs.readSync(fd, readBuf, 0, readBuf.length, offset); assert.strictEqual(readBuf.toString(), message); fs.readSync(fd, readBuf, 0, 1, 0);