mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-27 22:15:33 +00:00
test: update cycle source pin for cycleSourceId threading
The #1972 source-pin test asserts the literal runPhaseExtract call site in cycle.ts. The #1503 fix appended cycleSourceId after opts.signal; signal threading is unchanged (still the 5th arg, forwarded to runExtractCore). Pin updated to the new literal — invariant intact. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
140807b426
commit
d0b52ad939
@@ -175,7 +175,7 @@ describe('#1972 — complete cooperative-abort coverage', () => {
|
||||
const src = fs.readFileSync(new URL('../src/core/cycle.ts', import.meta.url), 'utf8');
|
||||
const body = src.slice(src.indexOf('export async function runCycle'));
|
||||
// Each long phase receives the signal.
|
||||
expect(body).toContain('runPhaseExtract(engine, brainDir, dryRun, syncPagesAffected, opts.signal)');
|
||||
expect(body).toContain('runPhaseExtract(engine, brainDir, dryRun, syncPagesAffected, opts.signal, cycleSourceId)');
|
||||
expect(body).toMatch(/runPhaseExtractFacts\([^)]*opts\.signal\)/);
|
||||
expect(body).toContain('signal: opts.signal'); // consolidate opts
|
||||
expect(body).toContain('runPhaseLint(brainDir, dryRun, engine, opts.signal)');
|
||||
|
||||
Reference in New Issue
Block a user