Skip to content

Commit 209f0d9

Browse files
committed
Fix slow discovery test
1 parent e4696b7 commit 209f0d9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/integration/scoring-pipeline.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,12 @@ describe('scoring pipeline: resolutions populated for real check failures', () =
419419
it('each failing check produces a resolution string', async () => {
420420
const { pages } = makePages(host, 6);
421421
setupSite(host, { pages, cacheControl: 'max-age=300' });
422+
// No llms.txt or sitemap → discovery falls back to baseUrl, and
423+
// markdown-url-support probes baseUrl's .md candidates.
424+
server.use(
425+
http.get(`http://${host}/.md`, () => new HttpResponse(null, { status: 404 })),
426+
http.get(`http://${host}/index.md`, () => new HttpResponse(null, { status: 404 })),
427+
);
422428

423429
const report = await runChecks(`http://${host}`, {
424430
requestDelay: 0,

0 commit comments

Comments
 (0)