mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-11 03:38:07 +00:00
refactor(lbug): rename __resetConnLockForTests to _resetConnLockForTests (#2264)
Match the repo's single-underscore test-seam convention (_initLockPathForTest). Pure rename of the @internal export and its sole importer. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JBJomjoTdBV2eveDVq4JMm
This commit is contained in:
parent
f0cb368580
commit
837a852858
2 changed files with 3 additions and 3 deletions
|
|
@ -61,6 +61,6 @@ export const withConnLock = async <T>(fn: () => Promise<T>): Promise<T> => {
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
export const __resetConnLockForTests = (): void => {
|
||||
export const _resetConnLockForTests = (): void => {
|
||||
tail = Promise.resolve();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@
|
|||
* the property that makes the otherwise-crashing overlap safe.
|
||||
*/
|
||||
import { afterEach, describe, expect, it } from 'vitest';
|
||||
import { withConnLock, __resetConnLockForTests } from '../../src/core/lbug/conn-lock.js';
|
||||
import { withConnLock, _resetConnLockForTests } from '../../src/core/lbug/conn-lock.js';
|
||||
|
||||
afterEach(() => {
|
||||
__resetConnLockForTests();
|
||||
_resetConnLockForTests();
|
||||
});
|
||||
|
||||
describe('withConnLock — connection serialization', () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue