Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CodebuffAI/codebuff
/ advisory-lock.integration.test.ts
File
advisory-lock.integration.test.ts
packages/internal/src/db/__tests__/advisory-lock.integration.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* Integration tests
for
advisory lock serialization of concurrent credit operations.
3
*
4
* These tests run against a real PostgreSQL database to verify that:
Callers
nothing calls this directly
Calls
12
withAdvisoryLockTransaction
Function · 0.90
afterEach
Function · 0.85
createTestLogger
Function · 0.85
simulateCreditConsumptionWithDelay
Function · 0.85
simulateGrantWithDelay
Function · 0.85
setTimeout
Function · 0.85
insert
Method · 0.80
delete
Method · 0.80
from
Method · 0.80
set
Method · 0.80
getTestDb
Function · 0.70
createGrantData
Function · 0.70
Tested by
no test coverage detected