fix(test): 낡은 검사 둘을 지금 코드에 맞춘다
앞 단계 시험이 실패해 가려져 있던 실패 둘이다. 둘 다 main에서도 같다. - request-fanout(아키텍처 시험)이 collect-catalog.ts의 반복 안 gateway.getCatalog()를 행마다 요청하는 N+1로 잡는다. 이것은 다음 요청이 앞 응답의 nextCursor에 기대는 커서 페이지 넘기기라 묶을 수 없다. 검사기가 정한 방식대로 그 줄에 `// fanout-reviewed: <이유>`를 단다. - release-manifest 시험이 TechLog Studio 계약 버전을 3.0.0으로 기대한다. 계약(contracts/studio/canonical-source.json)은 3.1.0이다. 시험은 일부러 값을 글자 그대로 두는 설계라 그 값을 3.1.0으로 맞춘다. 검증: 두 시험 파일이 통과한다(고치기 전 각 1건 실패, main에서도 같음).
This commit is contained in:
@@ -27,7 +27,7 @@ export async function collectCatalog(
|
||||
const items: CatalogPage["items"][number][] = [];
|
||||
let cursor: string | undefined;
|
||||
for (let page = 0; page < MAX_PAGES; page += 1) {
|
||||
const result: CatalogPage = await gateway.getCatalog(
|
||||
const result: CatalogPage = await gateway.getCatalog( // fanout-reviewed: cursor pagination; each page needs the previous page's nextCursor, so the calls cannot be batched
|
||||
{ ...query, limit: PAGE_SIZE, ...(cursor === undefined ? {} : { cursor }) },
|
||||
options,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user