Skip to content

test(hooks): add backoff behavior tests for useSignalPrice#458

Open
syed-ghufran-hassan wants to merge 2 commits into
AgesEmpire:mainfrom
syed-ghufran-hassan:patch-2
Open

test(hooks): add backoff behavior tests for useSignalPrice#458
syed-ghufran-hassan wants to merge 2 commits into
AgesEmpire:mainfrom
syed-ghufran-hassan:patch-2

Conversation

@syed-ghufran-hassan

Copy link
Copy Markdown
  • Create hooks/tests/useSignalPrice.test.ts
  • Test exponential backoff on repeated poll failures
  • Test stale flag toggling on failure/success
  • Test backoff reset to base interval after successful poll
  • Use fake timers to verify timing behavior

Ensures price polling resilience matches requirements and prevents indefinite retry storms during outages.

Closes # #455

 - Create hooks/__tests__/useSignalPrice.test.ts  
- Test exponential backoff on repeated poll failures  
- Test stale flag toggling on failure/success  
- Test backoff reset to base interval after successful poll  
- Use fake timers to verify timing behavior  
  
Ensures price polling resilience matches requirements and prevents  
indefinite retry storms during outages.
- Create hooks/__tests__/useSignalPrice.test.ts  
- Test exponential backoff on repeated poll failures  
- Test stale flag toggling on failure/success  
- Test backoff reset to base interval after successful poll  
- Use fake timers to verify timing behavior  
  
Ensures price polling resilience matches requirements and prevents  
indefinite retry storms during outages.  

Closes # AgesEmpire#455

@syed-ghufran-hassan syed-ghufran-hassan left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review

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.

1 participant