From a2184229232a9893179b43475f344c556ec4d956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 27 Oct 2017 23:22:53 +0800 Subject: [PATCH] hotfix(file): cast dev to uint32 --- test/scripts/box/file.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/scripts/box/file.js b/test/scripts/box/file.js index f7f2a283df..533dc9f06f 100644 --- a/test/scripts/box/file.js +++ b/test/scripts/box/file.js @@ -73,6 +73,8 @@ describe('File', () => { file.stat((err, fileStats) => { if (err) return callback(err); + //todo: cast dev to uint32 until https://github.com/nodejs/node/issues/16496 is resolved + fileStats.dev = (new Uint32Array([fileStats.dev]))[0] fileStats.should.eql(fs.statSync(file.source)); callback(); });