From fc9c17d96f291d8ca14b6d95786d952decea99ac Mon Sep 17 00:00:00 2001 From: Devin Ivy Date: Thu, 23 Apr 2026 11:42:09 -0400 Subject: [PATCH] test(shared): exercise dispose in Mutex.tryLock guard test --- test/shared/mutex.test.ts | 4 ++++ 1 file changed, 4 insertions(+) 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(); }); -- 2.51.2