test: execute the HTTP scenario catalog
This commit is contained in:
@@ -603,6 +603,7 @@ export function createContractHttpExecutor(
|
||||
}
|
||||
const kind = owner === "DEADLINE" ? "TIMEOUT" : "NETWORK_FAILURE";
|
||||
if (
|
||||
owner === null &&
|
||||
canRetryTransport(contract.retrySemantics, attemptState) &&
|
||||
retryIndex < retryCeiling &&
|
||||
remaining() > 0
|
||||
@@ -766,10 +767,10 @@ async function admitResponse<Input, WireOutput, Problem>(
|
||||
result: Object.freeze({
|
||||
kind: "RATE_LIMITED" as const,
|
||||
...(retryAfterMs === null ? {} : { retryAfterMs }),
|
||||
effect: certaintyForAbandonedAttempt(
|
||||
attemptState,
|
||||
effect: normalizeOptionalEffect(
|
||||
certaintyForAbandonedAttempt(attemptState, isCommand),
|
||||
isCommand,
|
||||
) as "NOT_APPLICABLE" | "NOT_APPLIED" | "MAYBE_APPLIED",
|
||||
),
|
||||
}),
|
||||
certainty: "RATE_LIMITED",
|
||||
retryHint: true,
|
||||
|
||||
Reference in New Issue
Block a user