Skip to content

Commit

Permalink
fix(captp): Teardown worker test
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Mar 14, 2024
1 parent 7969ac9 commit 63a75f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/captp/test/test-trap.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const makeWorkerTests = isHost => async t => {
// Small shared array buffer to test iterator.
const transferBuffer = new SharedArrayBuffer(MIN_TRANSFER_BUFFER_LENGTH);
const worker = new Worker(`${dirname}/worker.js`);
t.teardown(() => worker.terminate());
worker.addListener('error', err => t.fail(err));
worker.postMessage({ type: 'TEST_INIT', transferBuffer, isGuest: isHost });

Expand Down

0 comments on commit 63a75f7

Please sign in to comment.