Skip to content

Commit

Permalink
only listen for uncaught exception once (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs authored Mar 28, 2024
1 parent bb980b1 commit 4d8b814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ test('apply - uncaught exception', async t => {
const [store] = await createStores(1, t)

const error = new Promise((resolve, reject) => {
process.on('uncaughtException', reject)
process.once('uncaughtException', reject)
})

const a = new Autobase(store.session(), null, {
Expand Down

0 comments on commit 4d8b814

Please sign in to comment.