Skip to content

Conversation

@duyhungtnn
Copy link
Collaborator

@duyhungtnn duyhungtnn commented Oct 22, 2025

To ensure the Android SDK doesn’t have the same issue as described in this ticket,
this PR adds tests to verify the EvaluationForegroundTask scheduling logic when pollingInterval is less than, equal to, or greater than retryPollingInterval.

It ensures correct request timing and retry behavior under various configurations and error conditions.

Added tests to verify EvaluationForegroundTask scheduling logic when pollingInterval is less than, equal to, or greater than retryPollingInterval. Ensures correct request timing and retry behavior under various configurations and error conditions.
@duyhungtnn duyhungtnn self-assigned this Oct 22, 2025
@duyhungtnn duyhungtnn requested a review from Copilot October 22, 2025 05:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive test coverage for EvaluationForegroundTask scheduling behavior under different polling and retry interval configurations. The changes verify that the task correctly handles timing when pollingInterval is less than, equal to, or greater than retryPollingInterval, and ensures proper continuation of scheduling after both successful and failed requests.

Key Changes:

  • Added test to verify scheduling continues after successful requests with retryCount at 0
  • Added test for behavior when pollingInterval is shorter than retryPollingInterval (should not use retry logic)
  • Added test for behavior when pollingInterval equals retryPollingInterval (should maintain consistent timing through errors and success)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Corrected spacing in the function signature of a test to improve code readability and maintain consistency with Kotlin style guidelines.
Improves readability in EvaluationForegroundTaskTest by reformatting the initialization of test configs and components to use consistent indentation and line breaks. No functional changes were made.
@duyhungtnn duyhungtnn requested a review from cre8ivejp October 22, 2025 05:15
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.

2 participants