diff --git a/test/addons/dlopen-ping-pong/test.js b/test/addons/dlopen-ping-pong/test.js index eca516619a1484..c3461d8bd269c5 100644 --- a/test/addons/dlopen-ping-pong/test.js +++ b/test/addons/dlopen-ping-pong/test.js @@ -12,16 +12,8 @@ const bindingPath = require.resolve(`./build/${common.buildType}/binding`); console.log('process.dlopen:', bindingPath); process.dlopen(module, bindingPath, os.constants.dlopen.RTLD_NOW | os.constants.dlopen.RTLD_GLOBAL); - -let pingSOPath = `${path.dirname(bindingPath)}/lib.target/ping.so`; - -if (common.isOSX) { - pingSOPath = `${path.dirname(bindingPath)}/ping.so`; -} - -console.log('module.exports.load:', pingSOPath); -module.exports.load(pingSOPath); - +console.log('module.exports.load:', `${path.dirname(bindingPath)}/ping.so`); +module.exports.load(`${path.dirname(bindingPath)}/ping.so`); assert.strictEqual(module.exports.ping(), 'pong'); // Check that after the addon is loaded with