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: #807
Fixes: #806
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
-sh-4.2$
  • Loading branch information
NickNaso authored and mhdawson committed Sep 4, 2020
1 parent f27623f commit a13b36c
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 a13b36c

Please sign in to comment.