Skip to content

Commit 71db0fe

Browse files
committed
test: stabilize validation send failure fixture
1 parent ff197d4 commit 71db0fe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/fixtures/managed-validation-worker-fixture.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ const RUNNER_COMMAND_SCHEMA = 'ValidationRunnerCommandV1'
55

66
if (process.env.DEVCODEX_VALIDATION_WORKER_FAULT === 'disconnect-before-command') {
77
if (process.connected) process.disconnect()
8-
setTimeout(() => process.exit(19), 10)
8+
// Keep the disconnected process alive past the runner's delayed dispatch so
9+
// the fixture deterministically exercises the send-error closeout branch.
10+
setTimeout(() => process.exit(19), 1000)
911
}
1012

1113
function createSender(message) {

0 commit comments

Comments
 (0)