Skip to content

Commit 0339e2e

Browse files
committed
test: fix incorrect test
1 parent 3a80015 commit 0339e2e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/verrou/test_helpers/driver_test_suite.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export function registerStoreTestSuite<T extends { new (options: any): LockStore
6969
await lock.acquire()
7070

7171
await lock2.release()
72-
}).throws(/It looks like you are trying to release a lock that is not acquired by you/)
72+
// @ts-expect-error poppinss/utils typing bug
73+
}).throws(E_LOCK_NOT_OWNED.message, E_LOCK_NOT_OWNED)
7374

7475
test('throws timeout error when lock is not acquired in time', async () => {
7576
const provider = new LockFactory(new store(config), {

0 commit comments

Comments
 (0)