Skip to content

Commit cb75542

Browse files
committed
fix(e2e): record a status only for a fully read stop-after response
1 parent 2c9bebe commit cb75542

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/sim/scripts/test-workflow-stop-after-e2e.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ async function execute(
256256
},
257257
body: JSON.stringify(body),
258258
})
259-
status = response.status
260259
text = await readResponseTextWithLimit(response, {
261260
maxBytes: MAX_RESPONSE_BYTES,
262261
label: 'Stop-after E2E response',
263262
})
263+
status = response.status
264264
} catch (error) {
265265
const reason = isTimeout(error)
266266
? `no complete response within ${timeoutMs / 1000}s`

0 commit comments

Comments
 (0)