From 1a7aefdcc9c72c81a40f0d32bd24451122d0d900 Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Sun, 21 Jun 2026 13:15:27 +0000 Subject: [PATCH] test(lbug): assert deleteAllInterprocTaintPaths + deleteAllCallSummaries route through withConnLock (#2264) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The lock-routing suite covered 4 singleton-conn helpers but not these two withConnLock-wrapped delete helpers (lbug-adapter.ts), which also run during the incremental --pdg writeback window — so a revert of either wrapper would have gone uncaught. Add the two routing assertions to complete the coverage the file's header claims (every singleton-conn helper reachable during the WAL-driver window). Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01JBJomjoTdBV2eveDVq4JMm --- .../integration/lbug-conn-serialization.test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gitnexus/test/integration/lbug-conn-serialization.test.ts b/gitnexus/test/integration/lbug-conn-serialization.test.ts index 410e40560..f825b9737 100644 --- a/gitnexus/test/integration/lbug-conn-serialization.test.ts +++ b/gitnexus/test/integration/lbug-conn-serialization.test.ts @@ -92,6 +92,20 @@ withTestLbugDB('conn-serialization', () => { expect(cached.embeddings).toEqual([]); expect(cached.embeddingNodeIds.size).toBe(0); }); + + it('U4: deleteAllInterprocTaintPaths routes through withConnLock', async () => { + const { deleteAllInterprocTaintPaths } = await import('../../src/core/lbug/lbug-adapter.js'); + const result = await deleteAllInterprocTaintPaths(); + expect(lockSpy).toHaveBeenCalled(); + expect(result).toMatchObject({ edgesDeleted: 0 }); + }); + + it('U4: deleteAllCallSummaries routes through withConnLock', async () => { + const { deleteAllCallSummaries } = await import('../../src/core/lbug/lbug-adapter.js'); + const result = await deleteAllCallSummaries(); + expect(lockSpy).toHaveBeenCalled(); + expect(result).toMatchObject({ edgesDeleted: 0 }); + }); }); });