주기 SSE 검증 하네스 수정

This commit is contained in:
Yun Chan 2026-08-09 23:44:53 +09:00
parent 7b4955c3fc
commit fbf29fa40a
3 changed files with 16 additions and 1 deletions

View file

@ -95,7 +95,14 @@ function loadFixture(): ReturnedPracticeFixture {
}
async function expectOk(response: APIResponse) {
expect(response.ok(), await response.text()).toBeTruthy();
if (response.ok()) return;
let detail = `HTTP ${response.status()}`;
try {
detail = await response.text();
} catch {
// Streaming responses may not expose a replayable body through CDP.
}
expect(response.ok(), detail).toBeTruthy();
}
async function signInExistingFixture(