diff --git a/test/shared/mutex.test.ts b/test/shared/mutex.test.ts index 933122c..aeaf8d2 100644 --- a/test/shared/mutex.test.ts +++ b/test/shared/mutex.test.ts @@ -57,6 +57,10 @@ describe('Mutex', () => { const guard = m.tryLock(); assert.ok(guard); assert.equal(typeof guard[Symbol.dispose], 'function'); + guard[Symbol.dispose](); + // Should be able to lock again after dispose + const guard2 = m.tryLock(); + assert.ok(guard2); m.unlock(); });