Skip to content

Commit

Permalink
test: fix the threasfafe function test
Browse files Browse the repository at this point in the history
test: fixed the execution for the threasfafe function test

PR-URL: nodejs/node-addon-api#807
Fixes: nodejs/node-addon-api#806
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
-sh-4.2$
  • Loading branch information
John French committed Sep 4, 2020
1 parent 577a6bc commit d44b882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/threadsafe_function/threadsafe_function.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const buildType = process.config.target_defaults.default_configuration;
const assert = require('assert');
const common = require('../common');

module.exports = async function() {
module.exports = (async function() {
await test(require(`../build/${buildType}/binding.node`));
await test(require(`../build/${buildType}/binding_noexcept.node`));
};
})();

async function test(binding) {
const expectedArray = (function(arrayLength) {
Expand Down

0 comments on commit d44b882

Please sign in to comment.