mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
9fc266351f
* fix: stabilize replay nightly fixture boundaries * test: stabilize exit flush integration coverage * chore: drop the deleted exit-naive fixture from fallow's entry list (#1610 review P3)
10 lines
372 B
TypeScript
10 lines
372 B
TypeScript
// Large payload for the #1596 exit-flush fixture, ending with a marker that
|
|
// proves the whole write reached the parent process.
|
|
export const PAYLOAD_MARKER = 'EXIT_PAYLOAD_END_MARKER';
|
|
const PAYLOAD_BYTES = 200_000;
|
|
|
|
export function buildPayload(): string {
|
|
const body = 'x'.repeat(PAYLOAD_BYTES - PAYLOAD_MARKER.length - 1);
|
|
return `${body}${PAYLOAD_MARKER}\n`;
|
|
}
|