Skip to content

test(oracle): add timing verification for retry backoff delays, feat(api): add graceful shutdown on SIGTERM/SIGINT#535

Open
cokehill wants to merge 1 commit into
Smartdevs17:mainfrom
cokehill:the-best-fix
Open

test(oracle): add timing verification for retry backoff delays, feat(api): add graceful shutdown on SIGTERM/SIGINT#535
cokehill wants to merge 1 commit into
Smartdevs17:mainfrom
cokehill:the-best-fix

Conversation

@cokehill

Copy link
Copy Markdown

Closes #61

Add timing verification to retry tests in oracle/tests/contract-updater.test.ts (lines 240–260) using vi.useFakeTimers() to confirm exponential backoff delays (1s → 2s → 4s) are applied between retry attempts without flakiness.

Closes #76

Add SIGTERM and SIGINT handlers to api/src/index.ts so in-flight requests complete before the server closes, with a 10s force-exit timeout and shutdown logging.

…pi): add graceful shutdown on SIGTERM/SIGINT
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

@cokehill is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 24, 2026

Copy link
Copy Markdown

@cokehill Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add graceful shutdown handling to API server Add Oracle retry backoff delay verification tests

1 participant