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:
Gergo Magyar 2026-06-21 06:12:18 +00:00
parent f0cb368580
commit 837a852858
2 changed files with 3 additions and 3 deletions

View file

@ -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();
};

View file

@ -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', () => {