Skip to content

Add integration test for webhook delivery retrying after a 500 response from callback URL #578

Description

@Chucks1093

Summary

When a webhook callback URL returns a 500 error, the server should retry the delivery rather than treating it as a permanent failure. An integration test should confirm the retry fires and uses the correct backoff before the next attempt.

Scope

  • Register a webhook with a mock callback URL that returns 500 on the first call and 200 on the second
  • Simulate a trade event
  • Assert the callback was called twice
  • Assert the second call happened after the backoff delay
  • Assert the webhook is not marked as failed after a successful retry

Acceptance Criteria

  • Callback called twice: once failing, once succeeding
  • Webhook not marked as failed after successful retry
  • Retry fires after the configured backoff delay

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions