From 837a852858545a57254f4cd4d31c98f7848236ae Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Sun, 21 Jun 2026 06:12:18 +0000 Subject: [PATCH] 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) Claude-Session: https://claude.ai/code/session_01JBJomjoTdBV2eveDVq4JMm --- gitnexus/src/core/lbug/conn-lock.ts | 2 +- gitnexus/test/unit/conn-lock.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gitnexus/src/core/lbug/conn-lock.ts b/gitnexus/src/core/lbug/conn-lock.ts index 3a92bb8cc..7948371bc 100644 --- a/gitnexus/src/core/lbug/conn-lock.ts +++ b/gitnexus/src/core/lbug/conn-lock.ts @@ -61,6 +61,6 @@ export const withConnLock = async (fn: () => Promise): Promise => { * * @internal */ -export const __resetConnLockForTests = (): void => { +export const _resetConnLockForTests = (): void => { tail = Promise.resolve(); }; diff --git a/gitnexus/test/unit/conn-lock.test.ts b/gitnexus/test/unit/conn-lock.test.ts index 699160b94..f3d2e588b 100644 --- a/gitnexus/test/unit/conn-lock.test.ts +++ b/gitnexus/test/unit/conn-lock.test.ts @@ -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', () => {