diff --git a/test/addons/dlopen-ping-pong/test.js b/test/addons/dlopen-ping-pong/test.js index 9f07715cf1..c533593496 100644 --- a/test/addons/dlopen-ping-pong/test.js +++ b/test/addons/dlopen-ping-pong/test.js @@ -11,7 +11,7 @@ const os = require('os'); const bindingPath = require.resolve(`./build/${common.buildType}/binding`); process.dlopen(module, bindingPath, os.constants.dlopen.RTLD_NOW | os.constants.dlopen.RTLD_GLOBAL); -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