Skip to content

Commit

Permalink
fix: change expected error in lock-test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Nov 8, 2023
1 parent 8d45bba commit 860daf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/lock-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ test('lock held by same process', async function (t) {
await db2.open()
} catch (err) {
t.is(err.code, 'LEVEL_DATABASE_NOT_OPEN', 'second instance failed to open')
t.is(err.cause.code, 'LEVEL_LOCKED', 'second instance got lock error')
t.is(
err.cause.message,
'Invalid argument: Database already opened. Must set multithreading flag to true for all instances',
'second instance got lock error'
)
}

return db1.close()
Expand Down

0 comments on commit 860daf1

Please sign in to comment.