Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit c2849a59576096830f6b52b49781e82258a6cbaf
parent 1db4fb98990e605822813b5e8a6f8778cc94ecc6
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 28 Sep 2026 18:44:03 -0400

common: buildStats test (i) asserts the kept stats before the new result field

So that on the pre-review code the case fails at the dropped stats, not at
`heldChannels`, which did not exist yet.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

Diffstat:
Mcommon/controller/buildStats.test.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/controller/buildStats.test.ts b/common/controller/buildStats.test.ts @@ -480,9 +480,9 @@ test("(i) an unmounted media drive keeps its channel's stats; a cache clear refu renameSync(media, `${media}-away`); const log: string[] = []; const away = await runStats(log); - assert.deepEqual(away.res.heldChannels, [DRIVE_CHANNEL]); assert.equal(away.res.removed, 0, "not read as a channel with no videos"); for (const id of ["d1", "d2", "local"]) assert.ok(away.byId.has(id), `${id} still published`); + assert.deepEqual(away.res.heldChannels, [DRIVE_CHANNEL]); assert.equal(statOf(away.byId, "d1").hasTranscript, true); assert.ok( log.some((l) => l.startsWith(`Channel ${DRIVE_CHANNEL}: media not reachable`) && l.includes("its 2 cached stat(s) are kept")),