주기 SSE 검증 하네스 수정
This commit is contained in:
parent
7b4955c3fc
commit
fbf29fa40a
3 changed files with 16 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue