Skip to content

Commit

Permalink
hoist ping before garbage collection of python object
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Dec 23, 2021
1 parent 03e5e69 commit 307459d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/base/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ if (isMainThread) {

worker.on('message', state => {
if (state === 'done') {
expectedOwnership = true;
console.log('train task is completed');
setTimeout(() => {
clearInterval(alive);
expectedOwnership = true;
console.log('train task is completed');
console.log(foo.ping('x'));
setTimeout(() => {
clearInterval(alive);
t.end();
}, 1000);
}
Expand Down

0 comments on commit 307459d

Please sign in to comment.