Skip to content

Commit 00833fb

Browse files
committed
test(daemon-client): document how the refused-probe case proves the probe attempt
1 parent f6cd49a commit 00833fb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/daemon-client/__tests__/daemon-client-transport.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ async function assertRestartProbeFailureReportsUnavailable(
293293
return true;
294294
});
295295
assert.equal(rpcCount, 1);
296+
// A closed listener cannot count the probe; its attempt is proven by elimination: a skipped
297+
// probe would exhaust the budget and report daemon_transport_timeout, which the error check rejects.
296298
if (failure !== 'refused-connection') assert.equal(healthProbes, 1);
297299
} finally {
298300
await closeLoopbackServer(server);

0 commit comments

Comments
 (0)