From a9324ee0ccf02eca0c00b6b8cf17087eb3421af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20K=C3=BCsel?= Date: Mon, 29 Jan 2018 02:56:58 +0100 Subject: [PATCH] fix weird node bug --- test/integration-test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration-test.js b/test/integration-test.js index a6674e5..b33da7a 100644 --- a/test/integration-test.js +++ b/test/integration-test.js @@ -10,6 +10,8 @@ test('can prebuild a native module for electron', function (t) { rm.sync(path.join(cwd, 'prebuilds')) var file = 'native-v1.0.0-electron-v50-' + process.platform + '-' + process.arch + '.tar.gz' var prebuild = path.join(cwd, 'prebuilds', file) + // A quick, temporary fix for a node.js bug (https://github.com/prebuild/prebuild/pull/208#issuecomment-361108755) + console.log() exec('npm run prebuild', { cwd: cwd }, function (error, stdout, stderr) { t.equal(error, null) t.equal(fs.existsSync(prebuild), true) @@ -21,6 +23,8 @@ test('can prebuild a native module for node-webkit', function (t) { rm.sync(path.join(cwd, 'prebuilds')) var file = 'native-v1.0.0-node-webkit-v59-' + process.platform + '-' + process.arch + '.tar.gz' var prebuild = path.join(cwd, 'prebuilds', file) + // A quick, temporary fix for a node.js bug (https://github.com/prebuild/prebuild/pull/208#issuecomment-361108755) + console.log() exec('npm run prebuild-node-webkit', { cwd: cwd }, function (error, stdout, stderr) { t.equal(error, null) t.equal(fs.existsSync(prebuild), true)