Summary
Stress-test the relay service under concurrent payments and simulate failure scenarios to ensure it recovers correctly.
Why This Matters
The relay is the most critical piece of infrastructure — it watches chain events and completes atomic swaps. If it crashes, misses events, or fails to reconnect, payments are stuck. This must be validated before any real money flows.
Test Scenarios
1. Concurrent payments (load)
2. Relay crash mid-payment
3. Stellar node disconnect
4. Quote expiry race
5. Watchdog: expired lock refund
6. Webhook retry on failure
Pass Criteria
Summary
Stress-test the relay service under concurrent payments and simulate failure scenarios to ensure it recovers correctly.
Why This Matters
The relay is the most critical piece of infrastructure — it watches chain events and completes atomic swaps. If it crashes, misses events, or fails to reconnect, payments are stuck. This must be validated before any real money flows.
Test Scenarios
1. Concurrent payments (load)
withdraw()calls (should be idempotent)2. Relay crash mid-payment
Lockedevent detected3. Stellar node disconnect
4. Quote expiry race
5. Watchdog: expired lock refund
refund()and payment →REFUNDED6. Webhook retry on failure
EXHAUSTEDPOST /v1/webhooks/logs/:id/retrysucceedsPass Criteria