mirror of
https://github.com/chenhg5/cc-connect.git
synced 2026-10-25 17:36:43 +08:00
chore(core): 对齐 stale-lock 测试注释 (#1883)
统一两条时间戳测试注释的空格对齐,保持新增测试文件通过 gofmt。\n\nverify: go test ./core -run TestStaleLockDumpNamePadding\|TestPruneStaleLockDumps\|TestPruneStaleLockDumpsNoOps\|TestDumpStaleLockStacksEndToEnd\|TestSession_TryLockUnlock\|TestSession_Busy\$\|TestSession_LateUnlockDropped\|TestSession_BreakStaleLockThreshold\|TestSession_ForceUnlock -count=1 (ok); go vet ./core ./cmd/... ./agent/claudecode (ok); git diff --check (ok)
This commit is contained in:
1 parent
bdbb3468ea
commit
922e64ab11
1 file changed
+2
-2
@@ -12,8 +12,8 @@ import (
|
||||
// digits, so lexicographic order is chronological even across the 9→10→11
|
||||
// digit boundaries. A regression to bare %d breaks both assertions below.
|
||||
func TestStaleLockDumpNamePadding(t *testing.T) {
|
||||
older := staleLockDumpName(999999999, "sessA") // 9-digit ts
|
||||
newer := staleLockDumpName(1000000000, "sessB") // 10-digit ts
|
||||
older := staleLockDumpName(999999999, "sessA") // 9-digit ts
|
||||
newer := staleLockDumpName(1000000000, "sessB") // 10-digit ts
|
||||
wantOlder := "busy-stale-0000999999999-sessA.txt"
|
||||
if older != wantOlder {
|
||||
t.Fatalf("got %q, want %q", older, wantOlder)
|
||||
|
||||
Reference in new issue
Block a user