fix(pi): converge worker failures and thinking state
This commit is contained in:
8
tests/fixtures/fake-pi-rpc-child.mjs
vendored
8
tests/fixtures/fake-pi-rpc-child.mjs
vendored
@@ -100,6 +100,14 @@ function handle(command) {
|
||||
if (command.type === 'crash') {
|
||||
process.exit(7);
|
||||
}
|
||||
if (command.type === 'crash_with_stderr') {
|
||||
const secret = process.env.FAKE_PI_SECRET ?? 'missing-secret';
|
||||
process.stderr.write(`Authorization: Bearer ${secret}\n`);
|
||||
process.stderr.write(`token=${secret}\n`);
|
||||
process.stderr.write(`cwd=${process.cwd()}\n`);
|
||||
process.stderr.write('worker-exit-marker\n', () => process.exit(9));
|
||||
return;
|
||||
}
|
||||
writeRecord({
|
||||
type: 'response',
|
||||
id: command.id,
|
||||
|
||||
Reference in New Issue
Block a user