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: #807 Fixes: #806 Reviewed-By: Michael Dawson <[email protected]> -sh-4.2$
1 parent f27623f commit a13b36c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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
const assert = require('assert');
55
const common = require('../common');
66

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

1212
async function test(binding) {
1313
const expectedArray = (function(arrayLength) {

0 commit comments

Comments
 (0)