Skip to content

Commit 9eb248b

Browse files
fix(repro): drop redundant type cast in manual cron lease repro (PR #95362 CI)
1 parent 38733d1 commit 9eb248b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/repro/issue-92460-manual-cron-lease.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ async function main(): Promise<void> {
143143
assert.equal(
144144
capturedRunIds[0],
145145
MANUAL_RUN_ID,
146-
`runIsolatedAgentJob received runId=${String(capturedRunIds[0])} but expected ${MANUAL_RUN_ID} — the resolver would have looked up the lease under the wrong id`,
146+
`runIsolatedAgentJob received runId=${capturedRunIds[0]} but expected ${MANUAL_RUN_ID} — the resolver would have looked up the lease under the wrong id`,
147147
);
148148
console.log(
149-
`PASS 2. runIsolatedAgentJob received runId=${String(capturedRunIds[0])} (matches manual: id, so the resolver can find the lease)`,
149+
`PASS 2. runIsolatedAgentJob received runId=${capturedRunIds[0]} (matches manual: id, so the resolver can find the lease)`,
150150
);
151151

152152
// Step 3: simulate the resolver's `getActiveTaskRouteLease(runId)`
153153
// call. With the correct runId, it recovers the lease.
154-
const resolverLookup = getActiveTaskRouteLease(capturedRunIds[0]!);
154+
const resolverLookup = getActiveTaskRouteLease(capturedRunIds[0]);
155155
assert(resolverLookup, "resolver-side lease lookup returned undefined");
156156
assert.equal(resolverLookup.requesterOrigin?.channel, "webchat");
157157
// And — looking up by the internal `cron:` id does NOT find a

0 commit comments

Comments
 (0)