mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 06:30:03 +00:00
style: format probe-cleanup retry code (oxfmt)
This commit is contained in:
@@ -2186,8 +2186,6 @@ describe("closeOrphanedProbeForRetry (probe cleanup before verify-triggered retr
|
||||
await closeOrphanedProbeForRetry(stubSession, closer, log, "streaming");
|
||||
|
||||
expect(log.warn).toHaveBeenCalledTimes(1);
|
||||
expect((log.warn.mock.calls[0][1] as { error: string }).error).toBe(
|
||||
"string-only rejection",
|
||||
);
|
||||
expect((log.warn.mock.calls[0][1] as { error: string }).error).toBe("string-only rejection");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1487,10 +1487,9 @@ export async function closeOrphanedProbeForRetry(
|
||||
try {
|
||||
await closer(probe);
|
||||
} catch (closeErr) {
|
||||
log.warn(
|
||||
`[Render] probe close before ${retryContext} retry failed; continuing with retry`,
|
||||
{ error: closeErr instanceof Error ? closeErr.message : String(closeErr) },
|
||||
);
|
||||
log.warn(`[Render] probe close before ${retryContext} retry failed; continuing with retry`, {
|
||||
error: closeErr instanceof Error ? closeErr.message : String(closeErr),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user