Skip to content

Commit a13b36c

Browse files
NickNasomhdawson
authored andcommitted
test: fix the threasfafe function test
test: fixed the execution for the threasfafe function test PR-URL: #807Fixes: #806 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> -sh-4.2$
1 parent f27623f commit a13b36c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/threadsafe_function/threadsafe_function.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ const buildType = process.config.target_defaults.default_configuration;
44
constassert=require('assert');
55
constcommon=require('../common');
66

7-
module.exports=asyncfunction(){
7+
module.exports=(asyncfunction(){
88
awaittest(require(`../build/${buildType}/binding.node`));
99
awaittest(require(`../build/${buildType}/binding_noexcept.node`));
10-
};
10+
})();
1111

1212
asyncfunctiontest(binding){
1313
constexpectedArray=(function(arrayLength){

0 commit comments

Comments
 (0)